• Home
  • My Books
  • Contact
  • Author

Why React JS Will Change the World

React components implement a render() method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by render() via this.props.

<!DOCTYPE html>
<html>
  <head>
    <script src="build/react.js"></script>
    <script src="build/JSXTransformer.js"></script>
  </head>
  <body>
    <div id="example"></div>
    <script type="text/jsx">
      React.render(
        <h1>Hello, world!</h1>,
        document.getElementById('example')
      );
    </script>
  </body>
</html>

Want CommonJS?

If you want to use React with browserify, webpack, or another CommonJS-compatible module system, just use the react npm package. In addition, the jsx build tool can be integrated into most packaging systems (not just CommonJS) quite easily.

Next Steps

Check out the tutorial and the other examples in the starter kit’s examples directory to learn more.

We also have a wiki where the community contributes with workflows, UI-components, routing, data management etc.

Good luck, and welcome!

user-image
Amuthan ganeshan in Coding
22 minute read

Similar Posts

Supercharge Your Workflow With Grunt

CSS with Superpowers

10 Reasons to travel the world

Fake It Until You Make It

Its Not Always That Simple

user-image

Published Feb 10, 2015

Amuthan ganeshan in Coding

Also found in

  • Coding ,
  • Js

Share this article

Supercharge Your Workflow With Grunt

CSS with Superpowers

10 Reasons to travel the world

Fake It Until You Make It

Its Not Always That Simple

Stop Thinking And Start Doing