Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to React.js

Introduction to React.js

Overview of core concepts in React.js

Roman Liutikov

November 20, 2016
Tweet

More Decks by Roman Liutikov

Other Decks in Programming

Transcript

  1. DOM is also a tree structure <html> <head> </head> <body>

    <h1>Hello!</h1> <div></div> </body> </html>
  2. React.js application is a tree structure of React components <Root>

    <Child /> <Child> <Child>Hello!</Child> <Child /> </Child> </Root>
  3. A component may have an internal state When state is

    updated, component and its children are also updated (re-rendered).
  4. Child to parent communication Parent component may pass a callback

    function, which changes a state of the component, to child component.