bmkmanoj
1/15/2017 - 5:35 AM

React Getting Started - How it should be!

React Getting Started - How it should be!

<!DOCTYPE html>
<script src="https://jspm.io/system@0.19.js"></script>
<script>
System.config({
  transpiler: 'babel', // or 'traceur' or 'typescript'
  babelOptions: {} // or traceurOptions or typescriptOptions
});
System.import('./main.js');
</script>
import React from 'react'
import ReactDOM from 'react-dom'

const Hello = ({name}) => <h1>Hello {name}!</h1>

ReactDOM.render(
  <Hello name={"vjeux"}/>,
  document.body.appendChild(document.createElement("div"))
)