Create React App 2 Quick Start Guide
上QQ阅读APP看书,第一时间看更新

Creating Our First Create React App Application

In Chapter 1, Introducing Create React App 2, we started off by taking a good, long look at Create React App and some of the options it provides. We even got started with create-react-app and started learning React at a very basic level. What we need to do now, however, is start diving into building an application that will serve as the framework for adding more functionality and testing the limits of Create React App.

To make things extra easy, we're going to build a simple to do list, since that is an application that nearly everyone can understand. It even has a great non-digital analog to it, making it a simple thing to reason about!

In this chapter, we'll cover the following topics:

  • Designing a web app
  • Building a simple project structure
  • Passing values to components via props
  • Passing functions to children components via props
  • Basic component styling with included CSS