- When does a React component re-render?
- What does the React.useMemo hook do?
- How can you replicate componentWillUnmount using useEffect ?
- How can you replicate componentDidUpdate using useEffect ?
The objective of this discussion is to expose you to some of the popular frameworks that are built on top of JavaScript or React. The goal is not for you to know how to use these, but simply understand what their intended usage is in case you want to use it at some point in time.
For each of these, I want you to answer the following questions for the class:
- Why does this exist? Why did people spend hundreds of hours of their time to build this?
- For what types of projects would you use this for?
- Gatsby
- Storybook
There is some coding in this discussion. Feel free to write them in a REPL or in the comments below.
- How is an object different from an array?
- How does
const
work with objects? - Explain the difference between bracket syntax and dot syntax. Give an example of something that works with bracket syntax but not dot syntax. Give an example of something that works with dot syntax but not bracket syntax.
- What are computed properties? Write an example code.
- What is the difference between
Object.keys
andObject.entries
? Write example code using both of them. - How do we get only the values of an object?
For each discussion question, please write the answer in your own words. You may also optionally comment your answers in the comment section below (if you have a Github account).
- What does version control mean?
- What is the purpose of Git?
- How would the world be different if Git and version control did not exist?
- What is a branch in Git?
NewerOlder