Skip to content

Commit

Permalink
Merge pull request #2687 from JuhQ/patch-2
Browse files Browse the repository at this point in the history
Example indentation fix
  • Loading branch information
gwyneplaine committed Jun 12, 2018
2 parents 69ad427 + af5d386 commit 94df8a7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/pages/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,16 @@ export default function Components() {
import Select from 'react-select';
const CustomOption = ({ innerProps, isDisabled }) =>
!isDisabled ? (
<div {...innerProps}>// your component internals</div>
) : null;
!isDisabled ? (
<div {...innerProps}>{/* your component internals */}</div>
) : null;
class Component extends React.Component {
render() {
return <Select components={{ Option: CustomOption }} />;
}
render() {
return <Select components={{ Option: CustomOption }} />;
}
}
~~~
## Adjusting the Styling
Expand Down

0 comments on commit 94df8a7

Please sign in to comment.