Giter Site home page Giter Site logo

Comments (4)

levithomason avatar levithomason commented on May 16, 2024

Problem 👍
Proposed solutions 1 and 2 👍

As for the style function argument, even though props was popularized by React it seems many CSS in JS libraries call this argument props, even if they aren't supporting React. Some also call it state, as CSS in JS is also described as "styles as a function of state."

I think we should look around at the ecosystem and make a determination based on what is emerging and stay away from inventing anything new. Here are a few popular libraries

https://github.com/Khan/aphrodite
https://github.com/paypal/glamorous
https://github.com/FormidableLabs/radium
https://emotion.sh/
https://github.com/cssinjs/jss
http://fela.js.org/
https://github.com/styled-components/styled-components
https://github.com/styled-components/polished
https://github.com/styletron/styletron

Even more are listed here here:

https://github.com/MicheleBertoli/css-in-js

from fluent-ui-react.

kuzhelov avatar kuzhelov commented on May 16, 2024

required functionality is now introduced, let's spend some time to figure out if something needs to be changed for the name of props - based on the experience of other libs (totally agree that we'd better to stick to commonly taken approach).

from fluent-ui-react.

hughreeling avatar hughreeling commented on May 16, 2024

Perhaps also do #176

from fluent-ui-react.

kuzhelov avatar kuzhelov commented on May 16, 2024

this one is addressed by #173, closing

from fluent-ui-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.