Skip to content

Instantly share code, notes, and snippets.

@rrgayhart
Forked from biglovisa/react-notes.md
Last active December 16, 2015 17:26
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 rrgayhart/0ad78a741ce3585f51ef to your computer and use it in GitHub Desktop.
Save rrgayhart/0ad78a741ce3585f51ef 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 is a small view rendering library that works in components.

How does React interact with the DOM?

React diff a virtual DOM against the actual DOM to to handle state changing and re-rendering.

JSX

Why did they make JSX?

Component hierarchy

Trickle down that works!

State vs Props

I dig PropTypes - would be cool to see it in the code example.

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