Closed mir3z closed 6 years ago
Consider the following component:
const Foo = ({ children }) => ( <Center> { children } </Center> )
Then using it like that:
<Foo>Hello!</Foo>
In this case <Center /> will fail to render with TypeError: Cannot read property 'className' of undefined exception.
<Center />
TypeError: Cannot read property 'className' of undefined
What's the value of children? Sorry, that was a dumb question haha. It's early in the morning.
children
I'll look into it!
Published a fix in 0.3.1
0.3.1
Thanks for quick response.
Consider the following component:
Then using it like that:
In this case
<Center />
will fail to render withTypeError: Cannot read property 'className' of undefined
exception.