Skip to content

Commit dd0184d

Browse files
committed
better wording
1 parent 4b3ab7c commit dd0184d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@
1111

1212
## Install
1313

14-
This has peer dependencies of `react` and `react-dom`, which will have to be installed as well.
15-
1614
```sh
1715
npm install --save styled-jss
1816
```
1917

18+
Install peer dependencies `react` and `react-dom` in your project.
19+
20+
2021
## Usage
2122

22-
### With default styled function
23+
### With a default styled function
2324

2425
```js
2526
import styled from 'styled-jss'
@@ -35,9 +36,9 @@ const PrimaryButton = styled(Button, {
3536
})
3637
```
3738

38-
### With base Style Sheet
39+
### With a base Style Sheet
3940

40-
Using base Style Sheet we can share classes between styled primitives.
41+
Using base Style Sheet we can share classes between styled primitives and render function.
4142

4243
```js
4344
import { Styled, injectStyled } from 'styled-jss'
@@ -53,7 +54,7 @@ const styled = Styled({
5354
baseButton: {
5455
padding: 10,
5556
'& + &': {
56-
marginLeft; 10
57+
marginLeft: 10
5758
}
5859
}
5960
})
@@ -80,7 +81,7 @@ const MyComponent = ({classes}) => (
8081
const MyStyledComponent = injectStyled(styled)(MyComponent)
8182
```
8283

83-
### With custom JSS setup:
84+
### With custom JSS setup
8485

8586
`styled-jss` use [jss-preset-default](https://github.com/cssinjs/jss-preset-default) by default.
8687
But you can require `createStyled` and provide your custom jss instance.

0 commit comments

Comments
 (0)