Skip to content

Commit 35acf2f

Browse files
committed
SomeSpinnerComponent modified
1 parent 94c450c commit 35acf2f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ it will render a `Spinner`.
2222
```typescript
2323
import compose from 'recompose/compose'
2424
import {withSpinner} from 'react-with-spinner'
25+
const Loading = () => <span>Loading...</span>
2526

2627
const Component = compose(
2728
WrappedComponent => props => <WrappedComponent {...props} data={{loading: true}} />,
28-
withSpinner({spinnerComponent: SomeCustomSpinnerConponent}),
29+
withSpinner({spinnerComponent: Loading}),
2930
)(() => <div></div>)
3031

3132
```

0 commit comments

Comments
 (0)