bcherny / undux

⚡️ Dead simple state for React. Now with Hooks support.
https://undux.org
MIT License
1.49k stars 31 forks source link

TypeError when using Store.Container #157

Closed zhaodong-wang closed 9 months ago

zhaodong-wang commented 1 year ago

Hi, I was using undux and following the example here: https://undux.org/#quick-start

However, after the last step I got the following error:

Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & ContainerProps<State>'.ts(2559)

When I am trying to wrap the whole application with the Container component I got back from createConnectedStore.

I remember I didn't get this error a couple of months ago. Is this because of any react changes? How should I fix it?

ro-ka commented 1 year ago

I’m having the exact same problem with React 18 & undux 5.

bcherny commented 9 months ago

Try again now -- types are all updated in 5.3.0.