Writing React code without JSX can become rather tedious. In this video, learn how to rewrite two components as JSX, and integrate Babel, the JavaScript transpiler in the browser for easier prototyping.
- [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. …
Author
Released
6/5/2019- Installing React on an existing site
- Thinking about a design in terms of components
- Creating fully-featured function components using Hooks
- Storing and retrieving data from an external RESTful API
- Employing third-party components for CSS animation
- Using conditional rendering
Skill Level Intermediate
Duration
Views
Related Courses
-
Essentials of CSS for React Developers
with Eric Greene53m 31s Beginner -
React.js Essential Training (2018)
with Eve Porcello1h 25m Intermediate
-
Introduction
-
Using the exercise files1m 2s
-
1. Introducing React
-
2. First Project: Customizer
-
Attaching a data source3m 20s
-
Implement props4m 28s
-
Solution3m 4s
-
3. Second Project: Directory Browser
-
Scaffold initial components5m 58s
-
Functional components6m 37s
-
Build the filters form5m 41s
-
Wire up the filters form10m 57s
-
4. Third Project: Status Updater
-
Using conditional rendering4m 36s
-
Let form post to the API3m 25s
-
Conclusion
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Start using JSX with the help of Babel