This is a React style question.
TL;DR Take the set function from React\'s useState. If that function "changed" ev
set
useState