Skip to content

Instantly share code, notes, and snippets.

@vasanthk
Forked from gaearon/quiz.md
Created April 23, 2018 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasanthk/d6781b7db283f0b1b4b67059d00663ca to your computer and use it in GitHub Desktop.
Save vasanthk/d6781b7db283f0b1b4b67059d00663ca to your computer and use it in GitHub Desktop.

A top-level App component returns <Button /> from its render() method.

  1. What is the relationship between <Button /> and this in that Button’s render()?

  2. Does rendering <Button><Icon /></Button> guarantee that an Icon mounts?

  3. Can the App change anything in the Button output? What and how?


Update: answers are here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment