From the course: React for Web Designers

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Start using JSX with the help of Babel

Start using JSX with the help of Babel - React.js Tutorial

From the course: React for Web Designers

Start using JSX with the help of Babel

- [Instructor] At this point, we have not been in the business of writing React code for very long. But you may already be getting tired of having to write React.createElement over and over and over again. Now, there are different ways to work around this. You could create a variable for React.createElement, say, rce. And then, you could write your functions like this instead of having to type that code out all the time. But there's another way to do that that the React community uses all the time, which is JSX. In this video, we're going to start using JSX and using the Babel transpiler in the browser so that we don't have to install any build tools to get the benefits of JSX and ES6 in our files. To do that, we're going to need a little bit of installation first. When I said that we weren't going to use any extra tools at all, that was sort of a half-truth because to get Babel running properly, we need to use a local web server instead of addressing our files over a local file URL…

Contents