Skip to content

Instantly share code, notes, and snippets.

@bad6e
Forked from biglovisa/react-notes.md
Last active December 16, 2015 17:58
Show Gist options
  • Save bad6e/5cf93a84973a4d33aa4f to your computer and use it in GitHub Desktop.
Save bad6e/5cf93a84973a4d33aa4f to your computer and use it in GitHub Desktop.
React in theory

Use this gist to write down notes and questions as you read through the lesson plan. https://github.com/turingschool/lesson_plans/blob/master/ruby_04-apis_and_scalability/react_in_theory.markdown

What does React do?

It allows users to build small reusable compoents which displays data.

How does React interact with the DOM?

Each component has a render() function that will be called when the component is mounted on the DOM. It will execute all the code in component and render the JS/HTML.

JSX

JS extension that looks similar to XML.

Component hierarchy

State vs Props

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