We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create dynamic children Carousel component like below:
function App() { const [count, setCount] = useState(0); return ( <div className="bg-gray-800 w-screen h-screen"> <Button onClick={() => setCount((p) => p + 1)}>count: {count}</Button> <Carousel> <img src={viteLogo} className="logo" alt="Vite logo" /> <img src={reactLogo} className="logo" alt="React logo" /> {count < 5 && <img src={viteLogo} className="logo" alt="Vite logo" />} </Carousel> </div> ); }
Then, count up to 5 by clicking button
Flowbite throws error of TypeError: Cannot read properties of null (reading 'props') because it try to get child.props.className in this code.
TypeError: Cannot read properties of null (reading 'props')
child.props.className
Skip processing Falsy values.
Live Preview: https://stackblitz.com/edit/vitejs-vite-fynok7?file=src%2FApp.tsx
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce
Create dynamic children Carousel component like below:
Then, count up to 5 by clicking button
Current behavior
Flowbite throws error of
TypeError: Cannot read properties of null (reading 'props')
because it try to getchild.props.className
in this code.Expected behavior
Skip processing Falsy values.
Context
Live Preview: https://stackblitz.com/edit/vitejs-vite-fynok7?file=src%2FApp.tsx
The text was updated successfully, but these errors were encountered: