a guest May 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand