Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bladey committed Jun 10, 2020
1 parent 8fdaea5 commit 1491575
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Expand Up @@ -72,18 +72,17 @@ class App extends React.Component {
```

#### With React Hooks
```
```js
import React, { useState } from "react";
import Select from "react-select";

const options = [
{ value: "chocolate", label: "Chocolate" },
{ value: "strawberry", label: "Strawberry" },
{ value: "vanilla", label: "Vanilla" }
{ value: 'chocolate', label: 'Chocolate' },
{ value: 'strawberry', label: 'Strawberry' },
{ value: 'vanilla', label: 'Vanilla' },
];

export default function App() {
const [selectedOption, setSelectedOption] = useState(null);

return (
Expand All @@ -96,8 +95,8 @@ export default function App() {
</div>
);
}
```

## Props

Common props you may want to specify include:
Expand Down

0 comments on commit 1491575

Please sign in to comment.