react-sticky-box icon indicating copy to clipboard operation
react-sticky-box copied to clipboard

Functions are not valid as a React

Open chad1218 opened this issue 3 years ago • 2 comments

i was trying to install react-sticky-box with my react 18.2 ,next 13.0.2 project, i get errors

Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it. at div at div at div at StickyBox (webpack-internal:///./node_modules/react-sticky-box/dist/index.js:258:20)

chad1218 avatar Nov 16 '22 09:11 chad1218

Are you potentially using it as <div>{StickyBox}</div> (or some variant) rather than <div><StickyBox/></div>?

danielberndt avatar Nov 17 '22 12:11 danielberndt

thanks you

chad1218 avatar Nov 18 '22 06:11 chad1218