How to run React custom component library in local environment?

I am building custom component library with React(beta version)

To test the library in local environment, I want to know how to do that