A React component library by Doddy Digital Design
npm i ddd-react-core
import { Button } from "ddd-react-core";
import { useState } from "react";
export const Counter = (props: Props) => {
const [count, setCount] = useState(0);
return (
<Grid>
<Row>
<Button onClick={() => setCount((val) => val + 1)}>
Increment
</Button>
<Text type={"numeric"}>{count}</Text>
</Row>
</Grid>
);
};
- Clone the repo:
git clone https://github.com/doddydigitaldesign/ddd-react-core.git
- Change working directory:
cd ddd-react-core
- Install dependencies:
npm ci
- Run demo in a new browser tab:
npm start