Conditional class adding is not working in tailwind and react

Original message was deleted