I promise to keep the console open all the time during this course, and for the rest of my life when I'm doing web development
http://www.fullstackopen.com/en/
- Part 0 - Fundamentals of Web apps
- Part 1 - Introduction to React
- Part 2 - Communicating with server (In progress)
- a - Rendering a collection
- b - Forms
- c - Getting data from server
- d - Altering data in server
- e - Adding styles to React app
- Part 3 - Programming a server with NodeJS and Express
- part 2: The new note is added to the list of notes using the concat array method:
setNotes(notes.concat(noteObject))
The method does not mutate the originalnotes
array, but rather creates a new copy of the array with the new item added to the end. This is important since we must never mutate state directly in React!