It looks like you've wrapped styled() around your React component (ReactTooltip), but the className prop is not being passed down to a child. No styles will be rendered unless className is composed within your React component.
See original GitHub issueIt looks like you've wrapped styled() around your React component (ReactTooltip), but the className prop is not being passed down to a child. No styles will be rendered unless className is composed within your React component.
I get this warning when I use it with Styled-Components as Below
import ReactTooltip from 'react-tooltip
import styled from 'styled-components'
export default styled(ReactToolTip)`
// some styles
`
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
It looks like you've wrapped styled() around your React ...
It looks like you've wrapped styled() around your React component (ReactTooltip), but the className prop is not being passed down to a child....
Read more >styled-components is saying wrapped styled() around your ...
It looks like you've wrapped styled() around your React component (Component), but the className prop is not being passed down to a child....
Read more >[Solved]-styled-components is saying wrapped styled() around ...
"It looks like you've wrapped styled() around your React component (Hero), but the className prop is not being passed down to a child."?...
Read more >Developers - It looks like you've wrapped styled() around your React ...
It looks like you've wrapped styled() around your React component (ReactTooltip), but the className prop is not being passed down to a child....
Read more >react-tooltip - npm
Start using react-tooltip in your project by running `npm i ... and doing minor testing, but not fixing issues or doing active development....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Quick fix, you can turn off the warning using
.attrs({ suppressClassNameWarning: true })
provided by styled-components as below…But the issue must be fixed.
@Rogger794 It fixes the problem! Thank you! 😃