# react-clock
**Repository Path**: uiw/react-clock
## Basic Information
- **Project Name**: react-clock
- **Description**: 模拟时钟 React 组件。
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2020-11-23
- **Last Updated**: 2022-05-25
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
React Clock
[](https://github.com/uiwjs/react-clock/actions)
[](https://github.com/uiwjs/react-clock/issues)
[](https://github.com/uiwjs/react-clock/network)
[](https://github.com/uiwjs/react-clock/stargazers)
[](https://github.com/uiwjs/react-clock/releases)
[](https://www.npmjs.com/package/@uiw/react-clock)
An analog clock for your react app.
## Quick Start
```jsx
import ReactClock from '@uiw/react-clock';
function Demo() {
return (
);
}
```
## Props
```typescript
type ClockProps = {
width?: number;
height?: number;
value?: Date;
run?: boolean
} & React.SVGProps;
```
## Development
Runs the project in development mode.
```bash
# Step 1, run first, listen to the component compile and output the .js file
npm run ts:watch
# Step 2, listen for compilation output type .d.ts file
npm run types:watch
# Step 3, development mode, listen to compile preview website instance
npm run start
```
Builds the app for production to the build folder.
```bash
npm run build
```
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!