Skip to content

Instantly share code, notes, and snippets.

@zaigham
Last active June 2, 2016 06:26
Show Gist options
  • Save zaigham/3446781bbb6b304577e2abad737f9daa to your computer and use it in GitHub Desktop.
Save zaigham/3446781bbb6b304577e2abad737f9daa to your computer and use it in GitHub Desktop.
ReactJS Notes

Everything is a component.

Keypoints

  • One of the first things you’ll notice in React is that you’ll be writing markup in JS, not in HTML.
  • Do not use class. Instead, use className. It’s because JSX gets translated to JS, and class is a keyword in the newest version of JS.
  • If you use <br> instead of <br/>, it won’t work. Make sure to put / on self-closing tags.

Workflow

  • Setup static html mockup
  • Integrate into JSX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment