GithubHelp home page GithubHelp logo

Comments (3)

DanielWLam avatar DanielWLam commented on April 28, 2024

css in js在vue的实现就是scoped吧,react是怎样的?

from weekly.

ascoders avatar ascoders commented on April 28, 2024

@DanielWLam css in js 通用方案热门可以看 css-modules,基于 react 的定制方案有 原生-内连样式 社区-styled-components,底层一点的有 cssx

更多可以参考:awesome-css-in-js

from weekly.

AlwaysHacking avatar AlwaysHacking commented on April 28, 2024

css in js最早是react社区提出来的,vue的作者比较反对css in js这种行为,当然也要认可社区的活跃和创造性。
这篇文章说的是同样的主题,提到从书写代码便利性的角度反对css in js。

from weekly.

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.