Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- What situations would be good to use context?
- You sould use context when you have data that needs to be accessible to several different
- nested components.
- If you need to pass a prop down 1 or 2 levels, is context necessary?
- No, with props 1 or 2 levels deep you might want to consider component composition.
- Can you pass a component instance as a prop to avoid the need for context?
- Yes!
- Can you write your own components that accept render props?
- Yes!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement