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
Describe the bug
Hello, and thank you for this great component. I wanted to use your library as part of a project that depends on styled-components and saw some warnings after installation regarding styled-components being instantiated twice.
To Reproduce
Steps to reproduce the behavior:
Create a folder mkdir repro
Init npm package npm init -y
Install styled-components npm i styled-components
Install react-toggle-component npm i react-toggle-component
After bundling, the console should show the warning available in screenshots
Expected behavior
Styled-components should be put in peerDependencies
Screenshots
Warning message printed to the console :
Desktop (please complete the following information):
OS: Mac Os
Browser: Google Chrome
Version: 74
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Hello, and thank you for this great component. I wanted to use your library as part of a project that depends on styled-components and saw some warnings after installation regarding styled-components being instantiated twice.
To Reproduce
Steps to reproduce the behavior:
mkdir repro
npm init -y
npm i styled-components
npm i react-toggle-component
Expected behavior
Styled-components should be put in peerDependencies
Screenshots
![Warning message](https://camo.githubusercontent.com/12eaa5cac91e9f9de05ed45b9776942f85e572ef6d9b2de32f7684e1426f9a66/68747470733a2f2f692e6962622e636f2f4858776d514e532f73632d74776963652e706e67)
Warning message printed to the console :
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: