![]() ![]() Good! Let’s fix that up by adding the prop to our AddTodoForm. Import React from 'react' interface Props export default App Īgain, we’ll hit a familiar compilation error at this point: AddTodoFrom doesn’t expect an addTodo prop, so the compiler barfs. Therefore, we’re going to remove a bunch of files from the src folder and modify some files. This is cool and all, but we want to start relatively fresh with this tutorial. Realistically, we’ll find that our app occasionally does require us to restart the server when the typescript compiler barfs or we add or remove files. Note: As part of the deal with create-react-app, our app will hot reload whenever we make changes! That means we can generally leave yarn start running in the console and we won’t have to restart it. Navigate to and you should see our app in all its starter glory: Let’s start the app by running yarn start in the command prompt.
0 Comments
Leave a Reply. |