This repository provides a simple example to help you get started with the Carbon Design System and React. It is designed to save time by offering a pre-configured foundation for your projects.
Stay consistent
Use this as a reference to ensure your project aligns with IBM's design standards. It is flexible enough to adapt to your needs while promoting a consistent user experience.
Customize as needed
This is meant to be a starting point and a living guide, not a fixed framework. You can modify the repository to fit your project requirements or use it as inspiration for your own approach.
↳ Features
React 19
Carbon Design v11
Vite 6.0
↳ An example of data fetching
Below is a dynamically fetched message from an external API endpoint. This showcases how to perform data fetching while keeping components clean and separating network logic. Here is how it works:
UI layer - PostComponent.tsx manages React state and renders the data using Carbon Design components
API layer - Client-side functions in api/message.ts handle HTTP requests to our Express backend
Service layer - Server-side handlers in service/postHandlers.ts proxy requests to external APIs.
This pattern keeps your components focused on presentation while centralizing data fetching logic for reusability and testability.