DEV Community

Sachin Jadhav
Sachin Jadhav

Posted on

HELP: React component library with Redux

I'm trying to build a React component library and I want to publish it on npm. However, my component also uses Redux for state management. How can I export the component from the package and also use the react-redux Provider wrapper around the component at the same time. Any suggestions will be helpful.

Top comments (2)

Collapse
 
tomasforsman profile image
Tomas Forsman

Make them into web components =)

github.com/kozakrisz/counter-nativ...

Collapse
 
dance2die profile image
Sung M. Kim

I am having trouble understanding what you are trying to do 🤔

Are you trying to make sure your library be used with "redux" and "react-redux"?