Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 1.12 KB

setup_instructions.md

File metadata and controls

39 lines (33 loc) · 1.12 KB

npm install npm run serve

-->

'main.js' is a combination of all jsx files in the 'src' folder PLUS all dependencies we installed using npm. (note: it's a huge file!!)

Create 'src' folder (this is where all jsx files go to)

Create app.jsx - this is where element instance will be created and rendered using options For example,

How to create other jsx files:

  1. "var React = require('react');" should be the first line in all jsx files
  2. Specify all component dependencies
  3. Create a class using React and save it to module.exports: