The Basics
You've got React set up, you have a rough idea what's going on with Components and JSX, so now it's time to take a more detailed look at the basics. The topics covered in this section will allow you to create pretty much any React app you want to; it may not be the most efficient or compact app, but you should be able to do most of what you need.
We'll start by looking at React variables. There are basically 2 kinds of variables in React: props and state. props are parameters which are passed between components, while state variables are defined and controlled within a component. We'll look at each in turn.
After that we'll look at handling events - for instance, a user clicks a button, or submits a form.
Next we'll cover list handling - in other words, when we have a list of objects we want to manage (it could be users, books, holiday photos or whatever), how do we handle that in React?
After that, we'll look at form handling, which is one of the most common uses of React.
So, let's get started by looking at how to pass parameters between components, using props.
Comments
Post a Comment