January 2019
Intermediate to advanced
592 pages
14h 30m
English
In step 2, we defined three properties on the state. The results property will contain the response from the server API, which we later use to display the value in the UI.
We used the title and body properties to hold the values from the input text components so that the user can create a new post. Those values will then be sent to the API when pressing the Save button.
In step 6, we declared the elements on the UI. We used two inputs for post data and the Save button, which calls the onSave method when pressed. Finally, we used input text to display the result.
Read now
Unlock full access