What is React?
javascript framework for building composable UIs
What are some features of React?
What is the Virtual DOM
an in memory representation of the real DOM and it syncs against the real DOM. The virtual DOM allows for cheaper and faster and more frequent updates
When does the Virtual DOM sync against the real DOM?
After render() is called but before UI appears on screen
How does the VirtualDOM work?
What is JSX?
It’s the UI language that allows us to write html with javascript
Difference between state and props
When should you use a callback function in setState() ?
When you have to perform an asynchronous task
What are the 3 phases of the component lifecycle?
What are contexts?
tool to pass data w/o prop drilling. good for things like user auth or preferences
What is a custom hook?
A function that allows us to “hook” into React’s state and lifecycle updates