react-tracked
react-tracked copied to clipboard
[TypeScript] Unable to set propState when used with TypeScript
TypeScript is not letting me pass the props over to the useState like in your example. It doesn't like propState as well as useState when passing them over to the createContainer
https://github.com/dai-shi/react-tracked/blob/main/website/docs/recipes.md#usestate-with-propstate

You need to type useValue.
https://codesandbox.io/s/condescending-leftpad-hlokvl?file=/src/App.tsx
Closing as stale.