Solutionunvalidated
No need for that wrapper, directly pass the state setter to your context value — If you want to keep using the wrapper function. Outcome: setSearchTerm(term); // Directly use the input value for the new state value.
96559088-bb50-447f-83d4-1318034c426c
No need for that wrapper, directly pass the state setter to your context value — If you want to keep using the wrapper function. Outcome: setSearchTerm(term); // Directly use the input value for the new state value.