Create a reusable input that stores its value in state
Takes user input and stores its value in state
Passes state to another component that renders it on the page
Has a 'clear' button
What else could this component do?
Building reusable & flexible components is what React developers do. However, here are some questions to consider on what it should and should not be;
how much future work will you save by creating it
could it be for multiple data types (number, text, date) (should it be?)
could it have different styles for different uses
a custom message if incorrect or missing data
should it be all things or should it be specific to one thing such as password or email address
Create a reusable input that stores its value in state
What else could this component do? Building reusable & flexible components is what React developers do. However, here are some questions to consider on what it should and should not be;