Getting our list of Todos from the server

To get Todos, we'll need to change how our state is built out. If you think back to our earliest implementations of the TodoList component, we built all of our Todos as an array of strings and then allowed our Todo component to do the rest of the work. This ends up not being a great model when we’re actually getting information in and out of our server, so we’ll want to transition ourselves over from relying on simple strings to store the information about the Todos to a model where the data structures for the Todos match both their component implementations and their data representations on the server side.

To start modifying TodoList to fit our new world, we'll want to start with a blank list of ...

Get Create React App 2 Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.