React
Quickstart your project with our React library
Install moon-react package
# Using npm
npm install @heathmont/moon-react
# Using pnpm
pnpm install @heathmont/moon-react
# Using yarn
yarn add @heathmont/moon-react
OR Install components using moon-react CLI
# Using npm
npx @heathmont/moon-react --all-components
To import components:
import { Button } from "@heathmont/moon-react";
const App = () => <Button>Moon Button</Button>;
export default App;
OR To use locally installed components:
import Button from "./components/Button";
const App = () => <Button>Moon Button</Button>;
export default App;
Resources
- React components, https://react.moon.io/
- React npm package, https://www.npmjs.com/package/@heathmont/moon-react