简体   繁体   English

如何为React和non-react消费者提供解决方案?

[英]How to provide solutions to both React and non-React consumers?

I am developing a reusable set of UI React components using JSS, which are available in both ES5/ES6 modules. 我正在使用JSS开发可重用的UI React组件集,这两个ES5 / ES6模块都可用。 Is there a generator or pre-processor that can transform React/JSX into raw HTML and JSS into CSS? 是否有可以将React / JSX转换为原始HTML并将JSS转换为CSS的生成器或预处理器?

Try React Studio , it allows you write design/code in React style (eg State/Props/Components/Flows/etc...) and much more features on their website... 试试React Studio吧 ,它允许您以React风格(例如State / Props / Components / Flows / etc ...)编写设计/代码,并在其网站上提供更多功能...

Although it does not compile to "pure" HTML/CSS like you asked, but it can be used as a prototype/design tool with a good integration with Sketch, so any other developer/designer can also use it even if they don't understand React 尽管它不能像您要求的那样编译为“纯” HTML / CSS,但是它可以用作与Sketch集成良好的原型/设计工具,因此任何其他开发人员/设计人员也可以使用它,即使他们没有了解React

如果您需要https://github.com/cssinjs/jss/issues/579,请遵循有关从JSS静态提取的此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM