Skip to content

Commit 0672c15

Browse files
Update readme.md
1 parent cb1ae87 commit 0672c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pretty-proptypes can display props from two sources.
4444
```
4545

4646
```jsx
47-
import { Props } from 'pretty-proptypes';
47+
import Props from 'pretty-proptypes';
4848
import MyCoolComponent from '../MyCoolComponent';
4949

5050
<Props heading="My Cool Component" component={MyCoolComponent} />;
@@ -53,7 +53,7 @@ import MyCoolComponent from '../MyCoolComponent';
5353
**Option 2.** Directly passing a component's props to Props with [extract-react-types-loader](./packages/extract-react-types-loader) or getting types from [extract-react-types](./packages/extract-react-types) and writing it to a file
5454

5555
```jsx
56-
import { Props } from 'pretty-proptypes';
56+
import Props from 'pretty-proptypes';
5757

5858
<Props
5959
heading="My Cool Component"

0 commit comments

Comments
 (0)