pixijs / pixi-react

Write PIXI apps using React declarative style
https://pixijs.io/pixi-react/
MIT License
2.25k stars 173 forks source link

Fix Container TS types bug #401

Closed baseten closed 1 year ago

baseten commented 1 year ago

Fixes: https://github.com/pixijs/pixi-react/issues/350

According to https://github.com/pixijs/pixi-react/issues/350#issuecomment-1413422066 and as per suggestions on the Discord:

Basically you have to replace each React.FC with something that adds children prop

PropsWithChildren is mainly used for that right now

This should fix the TS issue with Container