Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with react 17 #151

Open
Ch3ssMaster opened this issue Aug 19, 2021 · 1 comment
Open

Doesn't work with react 17 #151

Ch3ssMaster opened this issue Aug 19, 2021 · 1 comment

Comments

@Ch3ssMaster
Copy link

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. react rating

@Ch3ssMaster Ch3ssMaster changed the title Doesn't works with react 17 Doesn't work with react 17 Aug 19, 2021
@cheddarwhizzy
Copy link

import Rating from "react-rating"; instead of var Rating = require("react-rating"); worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants