Reputation: 33
Hello I used flowbite along with tailwindcss and react js But the components are not working in the react
I imported the flowbite in the index.js
This Drp component you can see in the image
Then this is my tailwind.config.js :
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}", "./node_modules/flowbite/**/*.js"],
theme: {
extend: {},
},
plugins: [
require('flowbite/plugin')
],
}
but this is not working ,How to fix this???
Upvotes: 1
Views: 5388
Reputation: 69
Follow these points in "index.js" file:
Replace:
import ReactDOM from 'react-dom/client'; => import ReactDOM from 'react-dom';
User render method like:
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
Upvotes: 4