Design comparison
SolutionDesign
Solution retrospective
I'm using tailwindcss, and I want to apply a class dynamically by passing a string from parent to the child component, and apply it into the classname, but somehow i have to list all the strings needed inside the child component itself. (Sorry if my question is unclear, if you're confused you can check the repository provided and check on Chips.jsx component)
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord