React Pattern: Extract Child Components to Avoid Binding
Cory House

What about s complex form?



Render = () =>

Input1 value=this.state.input1 onChange= update state for field1





These inputs all need special cases of onChange to secure the value they modify. You either need a grip of extracted components for all the inputs, or a really awkwardly abstract component that gets configured per prop.

Any thoughts?

Like what you read? Give Joe Fraley a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.