Fix typo in example readme md

old
Javi Velasco 2015-11-01 17:53:46 +01:00
parent e73a29ad46
commit b4f9f5e1dd
1 changed files with 2 additions and 2 deletions

View File

@ -25,11 +25,11 @@ Once you have the workflow ready, you can just require and use the components:
import React from 'react';
import Button from 'react-toolbox/button';
const Button = () => (
const CustomButton = () => (
<Button label="Hello world" kind="raised" accent />
);
export default Button;
export default CustomButton;
```
The previous code creates a React button component based on React toolbox button. It's important to notice that requiring a module from the exposed root of the package will try to import the **ES6 JSX** and **SASS** of the component. If you want to still use CSS Modules but avoiding [Babel](https://babeljs.io/) and [SASS](http://sass-lang.com/) you will need to require from `react-toolbox/lib`.