Skip to content

Commit

Permalink
[docs] Use the de-structured "children" variable (#12104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzhang729 authored and oliviertassinari committed Jul 10, 2018
1 parent f572e46 commit 027b3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/customization/css-in-js/RenderProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Button from '@material-ui/core/Button';
function createStyled(styles, options) {
function Styled(props) {
const { children, ...other } = props;
return props.children(other);
return children(other);
}
Styled.propTypes = {
children: PropTypes.func.isRequired,
Expand Down

0 comments on commit 027b3ee

Please sign in to comment.