As React applications scale, structuring reusable components becomes essential for maintainability and collaboration. A good approach is to separate presentational and container components—keeping UI-focused components stateless and logic-free, while handling state and data in container components or custom hooks. A common and effective folder structure includes directories like /components/common for reusable UI elements, /features for feature-specific components, /hooks for shared logic, and /context for global state. Using useContext or custom hooks (like useGallery) allows you to manage shared state cleanly across the app. For state management, local useState works for isolated scenarios, but as complexity grows, tools like Redux or Zustand can help manage deeply nested or shared state. Following atomic design principles and keeping components small, modular, and testable greatly improves readability, reusability, and long-term scalability. The key is to follow consistent naming conventions, ensure separation of concerns, and refactor logic into hooks when needed—especially as teams and features grow.
GitHub
github.com › iamdarshshah › react-reusable-components
GitHub - iamdarshshah/react-reusable-components: Creating React Reusable components for community.
Creating ReactJS reusable components for community developers to use this components during development.
Starred by 7 users
Forked by 4 users
Languages JavaScript 87.1% | HTML 8.4% | CSS 4.5% | JavaScript 87.1% | HTML 8.4% | CSS 4.5%
I like generics but tbh I just don’t really see a huge need for them in business application code. For building UI frameworks? Of course. But all the stuff I build at work is some special snowflake component or marketing thing. Where do you all find uses for generics outside of building your internal component library? Is that it and I shouldn’t be looking for more? More on reddit.com
It’s recommended but it depends the context and the responsibility of the components. Sometimes when you look for reusability you ends up creating excessive abstraction on your software components. More on reddit.com
Take text in as a prop and you can change whatever the text says in the button. Make sure to add {text} in the button component jsx More on reddit.com
If you want your components to be reusable, it's either props or children. The component should just provide the layout/UI with no hardcoded content inside. React's own opinion on this: https://reactjs.org/docs/composition-vs-inheritance.html I suggest looking at popular libraries for some inspiration.. used this card lately https://www.primefaces.org/primereact/card/ More on reddit.com
19:51
Become a Master at Reusable Components in React - YouTube
19:08
Build a Reusable Component in React (Shadcn/ui, Tailwind) - YouTube
21:54
Create Clean and Reusable React Components - YouTube
12:47
Creating High-Quality React Components: Best Practices for ...
10:35
Create Highly Reusable React Components in Minutes with TypeScript ...
18:44
React Styled Components - The Complete Guide - YouTube
GitHub
github.com › the-road-to-learn-react › react-reusable-components
GitHub - the-road-to-learn-react/react-reusable-components: Showcasing how reusable components can be made reusable in React.
Showcasing how reusable components can be made reusable in React. - the-road-to-learn-react/react-reusable-components
Author the-road-to-learn-react
GitHub
github.com › coryhouse › ps-react
GitHub - coryhouse/ps-react: Reusable React components built in "Creating Reusable React Components" on Pluralsight
Starred by 137 users
Forked by 70 users
Languages JavaScript 96.4% | HTML 1.9% | CSS 1.7% | JavaScript 96.4% | HTML 1.9% | CSS 1.7%
GitHub
github.com › mesosphere › reactjs-components
GitHub - d2iq-archive/reactjs-components: :art: A library of reusable React components
:art: A library of reusable React components. Contribute to d2iq-archive/reactjs-components development by creating an account on GitHub.
Starred by 136 users
Forked by 20 users
Languages JavaScript 93.2% | CSS 6.7% | Shell 0.1% | JavaScript 93.2% | CSS 6.7% | Shell 0.1%
GitHub
github.com › diegohaz › reuse
GitHub - diegohaz/reuse: ♻️ Reuse React components to create new ones
♻️ Reuse React components to create new ones. Contribute to diegohaz/reuse development by creating an account on GitHub.
Starred by 493 users
Forked by 8 users
Languages TypeScript 97.3% | JavaScript 2.7% | TypeScript 97.3% | JavaScript 2.7%
GitHub
github.com › gallant4473 › reusable-react-components
GitHub - gallant4473/reusable-react-components: Contains group of common components (Checkbox, Radio Group, Dropdown, Multiselect dropdown, Modal, Lazy load list and many more to come)
Contains group of common components (Checkbox, Radio Group, Dropdown, Multiselect dropdown, Modal, Lazy load list and many more to come) - gallant4473/reusable-react-components
Starred by 7 users
Forked by 4 users
Languages JavaScript 73.3% | CSS 26.7% | JavaScript 73.3% | CSS 26.7%
GitHub
github.com › ambrosus › react-components
GitHub - ascendia-network/react-components: Reusable react components for AMB-NET Apps
Reusable react components for AMB-NET Apps. Contribute to ascendia-network/react-components development by creating an account on GitHub.
Author ascendia-network
GitHub
github.com › mrzachnugent › react-native-reusables
GitHub - founded-labs/react-native-reusables: Bringing shadcn/ui to React Native. Beautifully crafted components with Nativewind/Uniwind, open source, and almost as easy to use. · GitHub
Bringing shadcn/ui to React Native. Beautifully crafted components with Nativewind/Uniwind, open source, and almost as easy to use. - founded-labs/react-native-reusables
Starred by 8.1K users
Forked by 289 users
Languages TypeScript 69.8% | MDX 27.6% | JavaScript 2.1% | CSS 0.5%
GitHub
github.com › puzzlepart › react-reusable-components
GitHub - Puzzlepart/react-reusable-components
React Reusable Components Installation Components ConfirmDialog Import Using the hook UserMessage Import Using the hook Progress Import Using the hook
Author Puzzlepart
GitHub
github.com › garypotato › React-Reusable-Components
GitHub - garypotato/React-Reusable-Components: React reusable components, can install them via npm. Use Typescript and write test for each components.
React reusable components, can install them via npm. Use Typescript and write test for each components. - GitHub - garypotato/React-Reusable-Components: React reusable components, can install them via npm.
Author garypotato
GitHub
github.com › rheera › component-library
GitHub - rheera/component-library: A reusable component library made with React.
Part of Scrimba's Advanced React course. A collection of different Reusable Components. Goal is to practice compound components, useContext, custom hooks, and Render Props.
Author rheera
GitHub
github.com › oliverjam › learn-advanced-react-reusable-components
GitHub - oliverjam/learn-advanced-react-reusable-components: Learn how compound components help create more useful and reusable React components
Learn how compound components help create more useful and reusable React components - oliverjam/learn-advanced-react-reusable-components
Author oliverjam
GitHub
github.com › blackhaj › reusable-react
GitHub - blackhaj/reusable-react: A repo for reusable components and hooks
A repo for reusable components and hooks. Contribute to blackhaj/reusable-react development by creating an account on GitHub.
Author blackhaj
GitHub
github.com › topics › reusable-component
reusable-component · GitHub Topics · GitHub
Showcasing how reusable components can be made reusable in React.