Ok, not sure what changed but when I came back to my project and tried deleting all the generated css classes and the generated react component, the tailwind just works. It also still worked after I reverted all my changes to the state where it wasn't working before.
So, I'm closing this question.