You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to achieve some like that: const ValueItems = () => ( <React.Fragment> ... </React.Fragment> ) <TextLoop interval={4500} adjustingSpeed={300}> <ValuesItems /> </TextLoop>
As ValueItems is used in some places, it makes sense to me to create a component for that, however, to have the use ValueItems in TextLoop is not possible because it's wrapped with <React.Fragment>. The just check one level deep in the children nodes which I understand, however, I think that React.Fragments should be an exception to the rule as Fragments is intended to not be a node, but just a wrapper.
What are your thoughts?
The text was updated successfully, but these errors were encountered:
Firstly, thanks for the amazing lib!
I'm trying to achieve some like that:
const ValueItems = () => ( <React.Fragment> ... </React.Fragment> )
<TextLoop interval={4500} adjustingSpeed={300}> <ValuesItems /> </TextLoop>
As ValueItems is used in some places, it makes sense to me to create a component for that, however, to have the use ValueItems in TextLoop is not possible because it's wrapped with <React.Fragment>. The just check one level deep in the children nodes which I understand, however, I think that React.Fragments should be an exception to the rule as Fragments is intended to not be a node, but just a wrapper.
What are your thoughts?
The text was updated successfully, but these errors were encountered: