I have a code snippet like this –
<p className="xyz" dangerouslySetInnerHTML={{__html: dynamicContent}}></p>
Inside dyanmicContent there is string and one anchor tag and I want to apply some styles on a tag, I am trying this apporach
<style jsx>{`.xyz a {border-bottom: 1px solid;}`}</style>
But this way styles in not getting applied on a tag, am I missing something?
New contributor
Pardeep Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.