new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

IBM Carbon · all subjects

react-setup

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

@carbon/react package installation

The Carbon React library can be installed using npm with the command `npm install --save @carbon/react` or using Yarn with `yarn add @carbon/react`. Peer dependencies for @carbon/react must be installed in the project to avoid errors.

React component import and usage

Components from @carbon/react can be imported directly from the package. Example: `import { Button } from '@carbon/react';` and then used as `<Button>Example usage</Button>`. Components require a build pipeline such as Next.js, Vite, Parcel, or Webpack.

Carbon React styles import

Styles can be imported in two ways: import all styles from the project with `@use '@carbon/react';` in the root/global stylesheet, or import styles for a specific component with `@use '@carbon/react/scss/components/button';`.

Carbon React development with Storybook

Storybook is used for developing components in the Carbon React library. Start the development server with `yarn storybook` and open a browser to `http://localhost:9000/`. Components are developed in their respective folders under `/components` or `/internal`, with stories authored in `*.stories.js` files.

Carbon React resources

Resources for the Carbon React library include: the Carbon React Storybook at react.carbondesignsystem.com, interactive React components with Stackblitz at stackblitz.com/github/carbon-design-system/carbon/tree/main/examples/vite, and the Carbon React tutorial at /developing/react-tutorial/overview/.

Give your agent this brain