![]() ![]()
Since React has unidirectional data flow, we cannot easily pass data from the child component (file upload component) to the parent component. “Why do we need use a callback function to send the files state to the parent component?” Thus, for the parent component to also store the uploaded files, we need the file upload component to send it. Typically, the file upload component will be used in a form and when working with forms in React, the component stores the form data in the state. “Why do we need to send the files state to the parent component?”
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |