Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. What situations would be good to use context?
- When the data can be considered ‘global’, but it's not needed at intermediate levels.
- 2. If you need to pass a prop down 1 or 2 levels, is context necessary?
- No, context is useful when many components at various nested levels will need the data.
- 3. Can you pass a component instance as a prop to avoid the need for context?
- yes
- 4. Can you write your own components that accept render props?
- yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement