Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JavaScript by Example

You're reading from   JavaScript by Example Learn modern web development with real-world applications

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781788293969
Length 298 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dani Akash S Dani Akash S
Author Profile Icon Dani Akash S
Dani Akash S
Arrow right icon
View More author details
Toc

The React crash course

In this section, we are going to spend 10 minutes building your first React application. For this section, you don't need any text editor because you will be building the app in JSFiddle!

Get started by visiting the JSFiddle page at: https://jsfiddle.net/uhxvgcqe/, where I have set up all the libraries and configurations needed for building a React application. You should write the code for the React crash course section in this page.

This page has React and ReactDOM available as the properties of a window object (global scope), since I have included these libraries in the external resources. We'll also create a component object from the React object. In ES6, there is a trick to obtain properties or methods of an object into standalone variables. Look at the following example:

const vehicles = { fourWheeler: 'Car', twoWheeler: 'Bike...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image