Skip to content

dangerouslySetInnerHTML not working with Taillwind and React.js #7756

Answered by LOUTAG
AayushBiswas asked this question in Help
Discussion options

You must be logged in to vote

Hi,
I had the same problem that I could fix by adding json file extension to tailwind.config.js

module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx,json}"
],
theme: {
extend: {},
},
plugins: [],
}

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@thenotoriousgustav
Comment options

@luis030821
Comment options

@isaacdarcilla
Comment options

Answer selected by AayushBiswas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@isaacdarcilla
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@AzmeerHamasAli
Comment options

@LeonardoStrechar
Comment options

@LeonardoStrechar
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet