Advertisement
Guest User

Untitled

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