Skip to content

Commit 0e49c61

Browse files
authored
Update README.md
Add installation note
1 parent 84be101 commit 0e49c61

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

README.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,10 @@ or
2828
```bash
2929
yarn add react-style-stringify
3030
```
31-
32-
> **Note for TypeScript users**: This package uses the `CSSProperties` type from `@types/react`. If you're working with TypeScript and don't use React, install the type definitions:
33-
>
34-
> ```bash
35-
> npm install --save-dev @types/react
36-
> ```
37-
>
38-
> or
39-
>
40-
> ```bash
41-
> yarn add -D @types/react
42-
> ```
31+
> [!NOTE]
32+
> This package uses the `CSSProperties` type from `@types/react`.
33+
>
34+
> If you're working with TypeScript and don't use React, install `@types/react`.
4335
4436
## Usage
4537

@@ -97,13 +89,11 @@ When set `important` argument to `true`, appends `!important` to each CSS proper
9789

9890
## Dependencies
9991

100-
This package uses the following dependencies:
101-
10292
- **[@emotion/unitless](https://www.npmjs.com/package/@emotion/unitless)**: Handles checking for CSS properties that are unitless (e.g., `line-height`, `z-index`, etc.).
10393

10494
## Requirements
10595

106-
- **[@types/react](https://www.npmjs.com/package/@types/react)**: The package uses React's CSSProperties type for defining style objects.
96+
- **[@types/react](https://www.npmjs.com/package/@types/react)**: The package uses React's `CSSProperties` type for defining style objects.
10797

10898
## Contributing
10999

0 commit comments

Comments
 (0)