function MyComponent(){
let button;
if (isLoggedIn) {
button = <LogoutButton />;
} else {
-
Form elements such as
<input>
,<textarea>
, and<select>
naturally keep some internal state (and change based on user's input). -
From the React team: > In most cases, we recommend using controlled components to implement forms. In a controlled component, form data is handled by a React component.
In this document, you will find all the steps you should follow when working on the labs (in the prework and during the bootcamp).
The majority of time, you will have to start the process with forking. Just a quick reminder on what is the process of forking.
NewerOlder