diff --git a/template/README.md b/template/README.md index 6245d730885..d895bb73943 100644 --- a/template/README.md +++ b/template/README.md @@ -228,9 +228,11 @@ import './Button.css'; // Tell Webpack that Button.js uses these styles class Button extends Component { render() { // You can use them as regular CSS styles - return
; + return ; } } + +export default Button; ``` **This is not required for React** but many people find this feature convenient. You can read about the benefits of this approach [here](https://medium.com/seek-ui-engineering/block-element-modifying-your-javascript-components-d7f99fcab52b). However you should be aware that this makes your code less portable to other build tools and environments than Webpack.