Logo Awesome React

Awesome React

Props flow down callbacks fly up | LEARN WHILE YOU POOP 9

  • Details
How do you share state between components? With React (and Vue) we like to keep our dataflow unidirectional. That means we hoist state to the least common denominator, pass it down via props, and change it back up with callbacks.