Skip to content

Commit 6fdcb4a

Browse files
gaearonjavivelasco
authored andcommitted
Explain how to import components without CSS (#40)
1 parent 9cb805b commit 6fdcb4a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,16 @@ const App = ({ children }) => (
7575
export default App;
7676
```
7777

78-
Although `ThemeProvider` is exposed by react-toolbox, you can add your own importing directly from [react-css-themr](https://github.com/javivelasco/react-css-themr). Finally, *make sure* the components you use from react-toolbox are imported without bundled css. Check the documentation for more details.
78+
Although `ThemeProvider` is exposed by react-toolbox, you can add your own importing directly from [react-css-themr](https://github.com/javivelasco/react-css-themr).
7979

80+
**Finally, *make sure* the components you use from react-toolbox are imported without bundled css:**
81+
82+
```diff
83+
- import {Button} from 'react-toolbox/lib/button';
84+
+ import Button from 'react-toolbox/lib/button/Button';
85+
```
86+
87+
Otherwise your build will break.
8088

8189
That's all!
8290

0 commit comments

Comments
 (0)