trainline / react-skeletor

Skeleton loading for React
https://trainline.github.io/react-skeletor/
Other
554 stars 27 forks source link

createSkeletonElement typing only accepts stateless components. #19

Open jariz opened 6 years ago

jariz commented 6 years ago

It has no real reason to do so though, the exact component type is of no relevance to skeletor, as it passes the argument down to createElement eitherway.

sashayudaev commented 5 years ago

Any thoughts on this?