Transforming JSX into JavaScript
"Shawn, as I mentioned, the JSX is transformed to the native JavaScript syntax."
// Input (JSX): var app = <App name="Mike" />;
"This will eventually get transformed to"
// Output (JS): var app = React.createElement(App, {name:"Mike"});
Tip
Downloading the example code
You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
You can download the code files by following these steps:
- Log in or register to our website using your e-mail address and password.
- Hover the mouse pointer on the SUPPORT tab at the top.
- Click on Code Downloads & Errata.
- Enter the name of the book in the Search box.
- Select the book for which you're looking to download the code files.
- Choose from the drop-down menu where you purchased this book from.
- Click on Code...