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

Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. #224

Open
klals opened this issue Oct 12, 2023 · 1 comment

Comments

@klals
Copy link

klals commented Oct 12, 2023

I use React Remix with
import Carousel from 'react-material-ui-carousel'
import { Paper } from '@mui/material'

{ items.map( (item, i) => ) }
    function Item({ item }: { item: any }) {
const media = useMediaQuery('(max-width:600px)');
return (
    <div className="wrap-custom-div">
      
          <img src={item.image}  />
        <div className="carousel-content">
            <i>{item.quote}</i>

            <h3> {item.name} </h3>
            <h5> {item.title} </h5>
        </div>
    </div>
)

}

how can i resovle

@yarkovaleksei
Copy link

I have the same error in production. In dev mode everything works.

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