reactjs learning

By Xah Lee. Date: . Last updated: .

2018-06-30 reactjs learning notes.

Download or Loading React

Loading React

React.createElement

React.createElement

JSX

React JSX

ReactDOM.render

ReactDOM.render(
  <h1>Hello, world!</h1>,
  document.getElementById('root')
);

problems

how to compile jsx using typescript.

const React = require("react");
const ReactDOM = require("react-dom");

// test
const root81360 = React.createElement('div', {x:4},3);
console.log ( root81360 );

If you have a question, put $5 at patreon and message me.