Flowbite modal is not working in React #318
MarioStipetic
started this conversation in
General
Replies: 2 comments
-
So, when I add the modal inside index.html that is located in the react root, the modal works. |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://www.flowbite-react.com/docs/components/modal Please check this and follow it 💯 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I want to use the regular Flowbite CSS code inside my React app.
https://flowbite.com/docs/components/modal/
For example:
I added the following code inside my react file:
https://flowbite.com/docs/components/modal/#default-modal
I added the CSS in the header:
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/flowbite.min.css" />
And include the following JavaScript file before the end of the body element:
<script src="https://unpkg.com/[email protected]/dist/flowbite.js"></script>
When I include the mentioned code from 1., the modal just do not work.
How come this happens, can I fix it somehow?
Flowbite-react library is too complex for me, does not have any documentation, and also do not have a lot of templates available as the the regular Flowbite (not flowbite -react).
Beta Was this translation helpful? Give feedback.
All reactions