The basics of use were introduced in this tutorial Reaction Ingredients in your web apps. React is a JavaScript library used to create a user’s interface, especially for single page applications where some parts of the page need to be updated without reloading a full page. This helps developers make interactive, reusable components that manage their state and effectively respond to data changes.
This guide assumes that you have some basic programming experience and are comfortable in reading and writing JavaScript. You should understand how to work for variables, functions, loops, items and javascripts in the browser. You do not need to know the reaction or any blood tools, as they are introduced along the way.
How does this guide work
The three lessons presented here have been taken from my free book off -code Playbacks:
Introduction to Web Development from Back to front.
This book is available in free Playback press. This book is a leader for modern web development, which covers everything from basic javascript features to node, express, scallet, peanuts, and graphs to build full stack apps.
Every lesson is presented as Code playbackWhich is an interactive code walkthrough that shows how to change with my explanation about what is happening over time over time. This format helps you focus on the reasoning behind code changes.
To see the playback, click the Comments in the left panel. Each comment updates the code in the editor and highlights the change. Read the explanation, study the code, and use the Bullet in A tutor if you have questions. Here is a short video that shows how to use the code playback:
https://www.youtube.com/watch?v=uybhqcnjvdm
There are many other major reaction resources. After eliminating this brief introduction, see the official tutorial of the rect team: https://react.dev/learn.
The table of content
Introduction to the reaction: your first component
This first lesson introduces the user’s interface using a small, reaction reaction components. Instead of writing the code to update the Dom directly, you explain that the UI should look like, and the reaction takes care of the DOM with your data.
How to be used in the playback shown ReactDOM.render
With React.createElement
And then how to write the same ingredient using JSX. During the three lessons, I will create a site that shows some of the computer science legends (and a imposing).
Then the lesson moves towards producing a CustomHeader
The component that takes features or props
. This shows how to transmit data into a component and make it disastrous. Finally, you know how to write and reuse the easy ingredients that can be used in large react apps.
View the playback here: Primary reaction
Create a react app with White
The next lesson shows how to create a modern reaction project White. The White Project takes care of setting up by creating a folder, installing libraries, running development server, and building for production. This helps you to leave any manual setting and start building your app right now.
I will first prepare the CS Legends app from the playback, but this time inside the project directory. I will separate the ingredients in different files and use JSX. Playback also introduces useState
Dynamic data management and shows how to pass data and event handlers between components. The result is a working front and app with a clear structure and a re -use code.
View the playback here: Use of White to create a react app
To contact a real backbone with the express
This final lesson extends to the VITE + React app by adding a database -backed Express back. Instead of storing symptom data in the local state of the react, the app will bring and update data using API. You will create a second folder for the back and server, connect it to the database, and write the way to get and add data.
I use useEffect
Hook to load data from the express server when the app starts. You will also configure cors
Package to allow front end and bacland to talk to each other during development. Once everything works, the recting app is made in a stable bundle and is served by the express server. The result is a complete stack web app, ready to deploy.
View the playback here: Using a reaction and expressing express
Wrap
These three lessons cover the basics, but there is more to learn. If you find this format helpful, discover the rest of the book to see how the full web apps have been created using modern tools and framework.
The reaction is just one piece of the web development puzzle. When you get ready to go, keep building, reading, and tries other playbacks.
If you have an opinion about Playbacks, I would love to hear from you. You can reach me Mark@playbackpress.com.