Giter Site home page Giter Site logo

Comments (2)

garronej avatar garronej commented on June 21, 2024

@basile-savouret,

Thank you for the kind words,

cx is a lot smarter than cslx, it is capable of enforcing that if you call cx(className1, className2) the styles of className2 will have a higher priority than the styles of className1.

It is a great emotion feature that gives you control over how things are rendered. You should definitely stop using cslx in favor of cx.

You optain cx this way:

const { classes, cx } = useStyles();

Just in case you didn't notice, there is a new documentation website:

https://docs.tss-react.dev/setup

There is a mention about cx in the setup page.

Best regards

from tss-react.

basile-savouret avatar basile-savouret commented on June 21, 2024

@garronej ,

Thank you for your answer. I have looked up at the new documentation but i was mainly researching a similar approach as jss index in tss.

You could add a brief sentence about the injection priority handling with cx in your docs, just to clarify it.
I'm going to migrate all my cslx.

Thank you for your precious help, i wish you the best for the future.

from tss-react.

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.