import Video The defaultValue for an input is used as the initial value when a component is first rendered, before a user interacts with it. Data fetching is a side effect, so we’ll use the useEffect hook.
We want to fetch them whenever the input variable’s value changes.The real heavy lifting here will be done by POST'ing to our API, so here we will only be concerned with creating and displaying a form using React, and then handling the submit functionality. In this video we are going to add the Create functionality to our React CRUD application.