Following readme example leads to propType warning
See original GitHub issueDo you want to request a feature or report a bug? I want to report a bug.
If reporting a bug, what version of react-spinners
are you currently using?
I am using react-spinners version 0.5.0
What is the current behavior?
Following the example in the read me causes a warning:
Warning: Failed prop type: Invalid prop
cssof type
objectsupplied to
Loader, expected
string.
If the current behavior is a bug, please provide the steps to reproduce Follow the code example in the read me.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:7 (3 by maintainers)
Top Results From Across the Web
prop-types/README.md at main - GitHub
Here is an example of using PropTypes with a React component, ... This will warn as follows: // Warning: Failed prop type: Invalid...
Read more >Don't Call PropTypes Warning - React
Don't call PropTypes directly ... Using PropTypes in any other way than annotating React components with them is no longer supported: var apiShape...
Read more >propTypes should be a func console warning when passing in ...
I have the following component,
Read more >Documentation for Grommet - Medium
After a bit of comparison, Grommet ended up utilizing one of the most ideal ... Warning: Failed prop type: Button: prop type `a11yTitle`...
Read more >react-alert - npm
npm install --save react-alert react-alert-template-basic. Peer dependencies. This package expect the following peer dependencies:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@davidhu2000 The problem is in this line:
css: PropTypes.string
, it should bePropTypes.object
. Because ascss()
.I can create a PR for it. But you didn’t leave any guide about how to contribute to your project 😃
Nice. i’m waiting this PR 😃