Skip to content

Component Based UI

Melissa Stock edited this page Jun 17, 2019 · 1 revision

JSX

  • Syntax extension for Javascript that produces React elements
  • Following SRP by separating concerns using components\
  • Looks similar to html - but its not!
  • It can only render one item - so wrap everything into a div or use React.Fragment

#Rendering onto the DOM

  • <div id="root"></div> - React uses this to manage the DOM

Clone this wiki locally