Hacker GitHub

← All repos

JedWatson/classnames

View on GitHub ↗ ★ 17,769 JavaScript

A simple javascript utility for conditionally joining classNames together

7 mentions on Hacker News by 7 people: 2 stories, 5 comments · first 2016-02-09 · latest 2022-10-21

Mentions per year 7 mentions · busiest year 2016 (2)
20082026
  1. …https://github.com/tailwindlabs/prettier-plugin-tailwindcss Tailwind combined with classnames ( https://github.com/JedWatson/classnames ) makes it really easy to have conditional styling based on component state.
  2. Another advantage of camelCase is that classNames ( https://github.com/JedWatson/classnames ) works without quoting: // you have a variable isFoo <SomeComponent className={classNames({isFoo})} /> is a lot better than: // you have a…
  3. ▲ 1
    Classnames: A simple JavaScript utility for conditionally joining classNames
    story by praveenscience · 2019-09-04 · 0 comments
  4. …a component with conditional styling I use classNames and use props that correspond to classes. https://github.com/JedWatson/classnames
  5. …to see the dumb dependencies that these projects have https://github.com/sindresorhus/arrify https://github.com/JedWatson/classnames
  6. …can be activated using component state. This provides a viable solution for Structure & Style. [0] https://github.com/JedWatson/classnames
  7. ▲ 3
    JedWatson/classnames
    story by olalonde · 2016-02-09 · 0 comments