The objective of this section is to learn the basics of React and how it is being used in web applications by building a simple blog application. So far, we have been learning about React but now it's time to see how it is used in real web applications. React will work fine in our development environment, which we have been using in this book so far, except that we need to add an additional react preset to babel-loader.
But react-community has come up with a better solution, which is the create-react-app command-line tool. Basically, this tool creates your project with all the necessary development tools, Babel compilers, and plugins so that you need to focus only on writing code without worrying about Webpack configurations.
create-react-app recommends using yarn instead of npm while working on React, but since we are very familiar with npm, we...