/
1.5-useState_local_to_where_created
1.5-useState_local_to_where_created
Using useState() at the point where it is defined, without monitoring for side effects (useffect()) has no advantage unless there are dependent child components.
Line 14 - is one-way binding
Adding line 15 creates a two-way binding
We’ve added a temporary component called <TempDisplayField>
to demonstrate the behaviour