Create a new shared state object. Put this code at the top level scope:
Example:
const counterState = sharedState<number>(0); Copy
const counterState = sharedState<number>(0);
Optional
Create a new shared state object. Put this code at the top level scope:
Example: