
Beginning ReactJS Foundations Building User Interfaces with ReactJS
An Approachable Guide
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Beginning ReactJS Foundations Building User Interfaces with ReactJS
An Approachable Guide
About this book
Quickly learn the most widely used front-end development language with ease and confidence
React JS Foundations: Building User Interfaces with ReactJS - An Approachable Guide walks readers through the fundamental concepts of programming with the explosively popular front-end tool known as React JS.
Written by an accomplished full-stack engineer, speaker, and community organizer, React JS Foundations teaches readers how to understand React and how to begin building applications with it. The book:
- Explains and clarifies technical terminology with relevant and modern examples to assist people new to programming understand the language
- Helps experienced programmers quickly get up to speed with React
- Is stocked throughout with practical and applicable examples of day-to-day React work
Perfect for beginner, intermediate, and advanced programmers alike, React JS Foundations will quickly bring you up to speed on one of the most useful and widely used front-end languages on the web today. You can start building your first application today.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
1
Hello, World!
- How to use React without a toolchain.
- How to write your first React application.
- How to make and modify a React application built with Create React App.
REACT WITHOUT A BUILD TOOLCHAIN
- Create a new folder in your Documents folder and open it in Visual Studio Code.
- Open the Command Palette (Command+Shift+P on MacOS or Control+Shift+P on Windows) and run the File: New File command, or select File ➪ New File from the top menu.
- Save your new file as
index.html. - Type ! followed by the Tab key to generate an HTML template using emmet. If you prefer, you can also type the following code into your new blank file:
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Hello, React!</title></head><body></body></html> - Between the
<body>and</body>tags, create an emptydivelement and give it anidattribute with the value ofapp. This is where you're going to tell React to render its output. In the React world, we call this the container element. The actualidvalue doesn't matter here, butappis a simple, easy to remember, and meaningful value that is very commonly used.NOTE You can put a React container element anywhere inside thebodyelement of a web page. - Go to
https://reactjs.org/docs/cdn-links.htmlin your browser and find the script tags for including React and ReactDOM from a content delivery network (CDN), as shown in Figure 1-1. - Copy both script tags and paste them right before the
</body>tag inindex.html.NOTE The reason these must go at the end of the body of your web page is that they can make changes to your web page. Because of the way JavaScript loads and then executes immediately after it loads, the browser will show an error message if your React code is loaded and executed before the container element is loaded.The first script,react.development.js, is the actual React library that handles the rendering of React components, the flow of data between components, responding to events, and all of the func...
Table of contents
- COVER
- TABLE OF CONTENTS
- TITLE PAGE
- INTRODUCTION
- 1 Hello, World!
- 2 The Foundation of React
- 3 JSX
- 4 All About Components
- 5 React DevTools
- 6 React Data Flow
- 7 Events
- 8 Forms
- 9 Refs
- 10 Styling React
- 11 Introducing Hooks
- 12 Routing
- 13 Error Boundaries
- 14 Deploying React
- 15 Initialize a React Project from Scratch
- 16 Fetching and Caching Data
- 17 Context API
- 18 React Portals
- 19 Accessibility in React
- 20 Going Further
- INDEX
- COPYRIGHT
- DEDICATION
- ABOUT THE AUTHOR
- ABOUT THE TECHNICAL EDITOR
- ACKNOWLEDGMENTS
- END USER LICENSE AGREEMENT