Skip to content

Commit eac070b

Browse files
committed
Add import step to usage
1 parent d9f262f commit eac070b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ export default class Hello extends React.Component {
7171

7272
1. `npm install css-constructor --save`
7373

74-
2. Add a `@css` block **just before** the `render` function (important)
74+
2. `import css from 'css-constructor'`
7575

76-
3. Add `transform-decorators-legacy` as the first `plugin` in your `.babelrc` (already downloaded with 💄).
76+
3. Add a `@css` block **just before** the `render` function (important)
77+
78+
4. Add `transform-decorators-legacy` as the first `plugin` in your `.babelrc` (already downloaded with 💄).
7779

7880
If you are not familiar with `babel plugins` you can follow the [detailed instructions here.](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#installation--usage)
7981

0 commit comments

Comments
 (0)