I ❤️ react, and have spent a bit of time teaching react concepts to others through bootcamp trainings, and university courses.
Here are a few examples of concepts and code I’ve written for students that might be useful for you too:
Illustrates simple props.children composition, as well as composition with stateful components.
- Smart component
Stateful component composition with user generated data. Illustrates animating-out changes to state when todos are removed from state.
- Smart components
- component lifecycle
- event binding
Search-preview of the Google Books api. Illustrates a very simple debounce implementation for network request performance.
Use a higher order component to generalize a common task of fetching and loading data into a component.
Very simple composition example.