Summary
Ultimately, like so many other parts of React, understanding and mastering the framework hinges on being able to apply the rules and syntax of JavaScript that you are already familiar with. It's part of the strength of React; nothing you do is so intensely foreign that it's difficult to reason about. You can almost always take something you know in JavaScript and apply it, with few modifications. In the span of this chapter, we focused on applying conditionals and loops, two very basic building blocks of all JavaScript code bases and applied them to React and JSX.
These are some of the primary scenarios that you will run into when building React applications. Your applications will hinge on their ability to, ironically enough, react to dynamic states. You will rarely write static components and code in modern web applications and React not only knows this but discourages it. In the next chapter, we will learn how to use lifecycle methods to manipulate the state...