Automatically generating a component library from your React components (ES5, ES6, Typescript)
React BlueKit is a tool that automatically generates a library from React components. It allows users to browse through components, tweak their props, and see the changes live. Any changes made to the components’ code will be reflected in the library.
To use BlueKit, you can either use npm script or gulp.
build-bluekit
watch-bluekit
It will be built when needed.
Look at the example directory, you only need to add:
Optionally, you can pass children to BlueKit, which will be displayed above the search field for themes or other purposes.
If you want to add JSDoc descriptions, refer to the example example_components/Checkbox.react.js.
BlueKit automatically finds .tsx files and uses the react-docgen-typescript parser for it.
To start the development server and play with components in BlueKit, run the following command:
BlueKit development
localStorage.clear();React BlueKit is a valuable tool for React developers. It simplifies the process of generating a library from React components, allowing for easy browsing, prop editing, and live previews. The tool also provides features such as static analysis, Typescript support, and the ability to pass children to BlueKit. Overall, React BlueKit enhances development efficiency and improves the development experience.