simplestyle-js 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,10 +9,10 @@ A super simple CSS-in-JS solution with friendly TypeScript support and a small f
|
|
|
9
9
|
## Installation
|
|
10
10
|
`npm install simplestyle-js --save`
|
|
11
11
|
|
|
12
|
-
## Live Demo
|
|
13
|
-
[Codesandbox VanillaJS Demo](https://codesandbox.io/s/
|
|
12
|
+
## Live Demo using VanillaJS
|
|
13
|
+
[Codesandbox VanillaJS Demo](https://codesandbox.io/s/gracious-browser-9hxg3r?file=/src/index.js)
|
|
14
14
|
|
|
15
|
-
## Live Demo
|
|
15
|
+
## Live Demo using the provided React Hooks
|
|
16
16
|
[Codesandbox React Hooks Demo](https://codesandbox.io/s/nice-franklin-485wi?file=/src/App.tsx)
|
|
17
17
|
|
|
18
18
|
## Basic Usage
|
|
@@ -204,7 +204,7 @@ styleTag.innerHTML = `${stylesheet}${moreSheetContents}`;
|
|
|
204
204
|
|
|
205
205
|
```javascript
|
|
206
206
|
import React from 'react';
|
|
207
|
-
import { useCreateStyles } from 'simplestyle-js/
|
|
207
|
+
import { useCreateStyles } from 'simplestyle-js/react';
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
const MyComponent = () => {
|
package/package.json
CHANGED