I am trying to keep data of a non-usestate variable on a rerender
I have a main component, which has a sub-component.
The sub-component contain a state and return