State Options

Hey All

Let’s discuss. No deep bias one way or another, for me. State (like in React) or session/local variables. Advantages/Disadvantages?

I am building a simple JS widget and started using vanilla JS. Now I need state - so the lift to convert to REACT may (may) not be worth it. Going to use session variables instead and kinda don’t see the down side.

Thoughts?