How to create reusable components in React

Building reusable components is fundamental to creating maintainable and scalable React applications. As the creator of CoreUI, a widely used open-source UI library, and with over 11 years of experience in software development, I’ve designed thousands of reusable components that serve millions of developers worldwide. The key to creating truly reusable components is designing flexible APIs through props, using composition patterns, and maintaining proper abstraction levels. This approach ensures components can adapt to different use cases while remaining easy to understand and maintain.

Read More…

How to create a shared module in Angular

Creating shared modules is essential for organizing reusable components, directives, and pipes that are used across multiple feature modules in Angular applications. As the creator of CoreUI, a widely used open-source UI library, I’ve architected shared module systems in countless Angular projects over 25 years of development. From my expertise, the most effective approach is using Angular CLI to generate a shared module and then importing/exporting common components. This promotes code reusability and maintains clean module architecture.

Read More…
Subscribe to our newsletter
Get early information about new products, product updates and blog posts.
How to check if a string is a number in JavaScript
How to check if a string is a number in JavaScript

How to migrate CoreUI React Templates to Vite
How to migrate CoreUI React Templates to Vite

Mastering JavaScript List Comprehension: The Ultimate Guide
Mastering JavaScript List Comprehension: The Ultimate Guide

How to concatenate a strings in JavaScript?
How to concatenate a strings in JavaScript?

Answers by CoreUI Core Team