Skip to content

Commit

Permalink
[docs] Use the de-structured "children" variable (mui#12104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzhang729 authored and Joe Shelby committed Jul 14, 2018
1 parent 18d0cbe commit e1f44f0
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 e1f44f0

Please sign in to comment.