We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c450c commit 35acf2fCopy full SHA for 35acf2f
1 file changed
README.md
@@ -22,10 +22,11 @@ it will render a `Spinner`.
22
```typescript
23
import compose from 'recompose/compose'
24
import {withSpinner} from 'react-with-spinner'
25
+const Loading = () => <span>Loading...</span>
26
27
const Component = compose(
28
WrappedComponent => props => <WrappedComponent {...props} data={{loading: true}} />,
- withSpinner({spinnerComponent: SomeCustomSpinnerConponent}),
29
+ withSpinner({spinnerComponent: Loading}),
30
)(() => <div></div>)
31
32
```
0 commit comments