DEV Community

Discussion on: React: How to create a reusable form using React Context

Collapse
 
rykus0 profile image
Tom Pietrosanti

This is nice, thank you. A question though about using the FormInput on its own (basically, what happens if the assumed context isn’t there). Do you need to separately declare the context in this case? Or always use a form component? If so, and advice on building test/demo cases programmatically? Thanks!