Coder Social home page Coder Social logo

Comments (6)

dcousens avatar dcousens commented on July 20, 2024 3
'abstract fizz buzz'.split(' ').map(x => 'foo-' + x).join(' ')

You could do it in this module, it might be more performant... but IMHO, its probably out of scope.

from classnames.

springuper avatar springuper commented on July 20, 2024 2

ask for this feature. it's very useful when building ui library without css-modules.

from classnames.

davesnx avatar davesnx commented on July 20, 2024 1

Seems that isn't aligned with the purpose of this module and with a preset you could achive the same.

I'm closing this...

from classnames.

davesnx avatar davesnx commented on July 20, 2024 1

I came up with a babel-plugin to prefix CSS classes instead, I went for a build-time solution rather than a run-time.

from classnames.

davesnx avatar davesnx commented on July 20, 2024

Of course I can do it without classNames, are just string operations.
The discussion that I try to open is have some options like that inside the api of classNames, and abstract this operations/options on the correct place, instead of running it each time that I want it. @dcousens

from classnames.

maestrow avatar maestrow commented on July 20, 2024

I'm looking for the same feature in this module and came here. @davesnx, It would be helpful for me and other searching people, if you give a little description - with what preset we could achieve the same? Thanks.

from classnames.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.