awesome-reveal / react-awesome-reveal

React components to add reveal animations using the Intersection Observer API and CSS Animations.
https://react-awesome-reveal.morello.dev
MIT License
1.15k stars 43 forks source link

Fix removal of implicit children #121

Closed Rubenoo closed 2 years ago

Rubenoo commented 2 years ago

In React 18, I can't pass the children props to transitions because the children prop is not being mentioned in the RevealProps interface.

Right now i get this error:

Property 'children' does not exist on type 'IntrinsicAttributes & SlideProps'

Fix this by adding the children prop to the RevealProp interface.

morellodev commented 2 years ago

Please use the v4 beta (instructions here). The more the beta is tested, the sooner the v4 stable is released.

morellodev commented 2 years ago

Please use the v4 beta.

Il giorno mar 17 mag 2022 alle 10:47 Rubenoo @.***> ha scritto:

In React 18, I can't pass the children props to transitions because the children prop is not being mentioned in the RevealProps interface.

Right now i get this error:

Property 'children' does not exist on type 'IntrinsicAttributes & SlideProps'

Fix this by adding the children prop to the RevealProp interface.

— Reply to this email directly, view it on GitHub https://github.com/morellodev/react-awesome-reveal/issues/121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVOMBJGDDAOJFONIYGKA73VKNMILANCNFSM5WEEDHJQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Dennis Morello Front-End Software Engineer

W: https://morello.dev E: @.***