All Projects → michal-wrzosek → react-component-lib

michal-wrzosek / react-component-lib

Licence: MIT license
Boilerplate repo for creating npm packages with React components written in TypeScript and using styled-components

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
typescript
32286 projects
CSS
56736 projects

Projects that are alternatives of or similar to react-component-lib

Reactour
Tourist Guide into your React Components
Stars: ✭ 2,782 (+3931.88%)
Mutual labels:  styled-components, react-components
ontwik-ui
ontwik-ui - A headless UI library
Stars: ✭ 52 (-24.64%)
Mutual labels:  styled-components, rollup
Styled Bootstrap Components
The bootstrap components made with styled-components 💅
Stars: ✭ 196 (+184.06%)
Mutual labels:  styled-components, react-components
Styled Bootstrap
💅🏻 A styled-component implementation of Bootstrap
Stars: ✭ 154 (+123.19%)
Mutual labels:  styled-components, react-components
movies
🍿 react-app for movies
Stars: ✭ 60 (-13.04%)
Mutual labels:  styled-components, create-react-app
React App Rewire Styled Components
Add the styled-components Babel plugin to your create-react-app app via react-app-rewired
Stars: ✭ 159 (+130.43%)
Mutual labels:  styled-components, create-react-app
mcs-lite
🎛 MCS Lite Common UI and Websites.
Stars: ✭ 75 (+8.7%)
Mutual labels:  styled-components, create-react-app
React Boilerplate Cra Template
🔥 Setup Create React App with React Boilerplate. Highly scalable & Best DX & Performance Focused & Best practices.
Stars: ✭ 859 (+1144.93%)
Mutual labels:  styled-components, create-react-app
forex-web-app
💱 foreign currency exchange app built with react hooks
Stars: ✭ 17 (-75.36%)
Mutual labels:  styled-components, create-react-app
marvel-jarvig
Marvel JARVIG (Just A Rather Very Interesting Game) is a game that lets you find and discover Marvel Comics characters based on their name, image and description!
Stars: ✭ 13 (-81.16%)
Mutual labels:  styled-components, create-react-app
Road Beyond React App
🌈 The Road beyond React - Thing you can use after learning plain React.js
Stars: ✭ 108 (+56.52%)
Mutual labels:  styled-components, create-react-app
basic-todo-app-using-bit
A highly-modular React todo application composed of reusable components from 5 different collections. Full-blown software modularity.
Stars: ✭ 16 (-76.81%)
Mutual labels:  create-react-app, react-components
Re Jok
A React UI Component library built with styled-components
Stars: ✭ 102 (+47.83%)
Mutual labels:  styled-components, react-components
Tails Ui
🐒 Clean UI based on tailwindcss
Stars: ✭ 162 (+134.78%)
Mutual labels:  styled-components, rollup
Ui
React Styled Components with bootstrap grid system
Stars: ✭ 89 (+28.99%)
Mutual labels:  styled-components, react-components
rebass
⚛️ React primitive UI components built with styled-system.
Stars: ✭ 7,844 (+11268.12%)
Mutual labels:  styled-components, react-components
React Firebase Starter
Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay
Stars: ✭ 4,366 (+6227.54%)
Mutual labels:  styled-components, create-react-app
Animate Components
✨ Elemental components for doing animations in React
Stars: ✭ 908 (+1215.94%)
Mutual labels:  styled-components, create-react-app
react-library-starter
A library starter kit and bundler for your React projects, powered by Rollup. ⚡
Stars: ✭ 22 (-68.12%)
Mutual labels:  styled-components, rollup
react-functional-select
Micro-sized & micro-optimized select component for React.js
Stars: ✭ 165 (+139.13%)
Mutual labels:  styled-components, react-components

react-component-lib

This is a boilerplate repository for creating npm packages with React components written in TypeScript and using styled-components.

Medium article explaining step by step how to use this repo to publish your own library to NPM: https://medium.com/@xfor/developing-publishing-react-component-library-to-npm-styled-components-typescript-cc8274305f5a

Installation:

To install all dependencies run:

npm i

It will install:

  • dependencies and devDependencies from ./package.json
  • peerDependencies from ./package.json thanks to install-peers-cli
  • dependencies and devDependencies from ./example/package.json (example create react app for testing)

Developing your library:

To start developing your library, run npm run dev. It will build your library and run example create-react-app where you can test your components. Each time you make changes to your library or example app, app will be reloaded to reflect your changes.

Styled-components:

Developing library with components built with styled-components is challenging because you have to keep only one instance of styled-components. If you would just symlink your library (file:../ or npm link) to example app that is also using styled-components you'll get a console warning about multiple instances of styled-components (even though styled-components are peer dependency) and your styles will be possibly broken. To be able to conveniently develop styled components I am injecting bundled files directly into example app's /src folder and importing it in App.tsx along with type declaration.

Typescript

This boilerplate lets you develop your libraries in Typescript and you can simultaneously test it in Typescript example create-react-app.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].