- Discuss in words something you learned in class today or this week.
This week we learned about conditional and dynamic rendering to help build a react webpage
- What is the difference between state and props?
The key difference is that state is internal and controlled by the component itself while props are external and controlled by what renders the component
- What is ReactDOM? What is the difference between ReactDOM and React?
ReactDOM connects react to the DOM, used with the ReactDOM.render() method
React is a JS library that contains how everything else works
- What is React.createClass?
How class based components used to be created
Instead of using an event handler on each individual element, you can put a single handler on the parent of related elements. It is useful because it helps clean up the code and limit what you have to write
I like the react hooks that allow us to use functions rather than classes in React because it makes the code simpler and easier to write