title: Styling Navlink using Tailwind css
body: <p>I am trying to add tailwind-css to Navlink(react-router-dom). I want to add active style. To add active styles I can use</p>
  <pre><code>&lt;NavLink to=&quot;/faq&quot; activeStyle={{fontWeight: &quot;bold&quot;,color: &quot;red&quot;}}&gt;
    FAQs
  &lt;/NavLink&gt;
  </code></pre>
  <p>Is there a way to do this with tailwind-css, I don't want to use css, maybe something like this?</p>
  <pre><code>&lt;NavLink to=&quot;/faq&quot; className={`${active?'font-bold text-red':'text-gray-900'}...`}&gt;
    FAQs
  &lt;/NavLink&gt;
  </code></pre>