Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. What situations would be good to use context?
  2. You sould use context when you have data that needs to be accessible to several different
  3. nested components.
  4.  
  5. If you need to pass a prop down 1 or 2 levels, is context necessary?
  6. No, with props 1 or 2 levels deep you might want to consider component composition.
  7.  
  8. Can you pass a component instance as a prop to avoid the need for context?
  9. Yes!
  10.  
  11. Can you write your own components that accept render props?
  12. Yes!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement