Relative Content

Tag Archive for cssreactjsnext.jscss-selectorstailwind-css

Using map to generate sibling classes in tailwind

I am using tailwind and react and nextjs to create a website. I am trying to utilize the check radio button trick to have a website display different content without javascript. I want to make the data structure easy to manage so I thought of using an array of objects like [{name: string, content: string}, … ]. This is part of the tailwind documentation I was following: differentiating peers