createRule in react
See original GitHub issueExpected behavior:
want to use jss.createRule
as inline style in react, benefits autoprefixer and other plugins.
Describe the bug:
jss.createRule(rule).toJSON()
works, however it emits warning in react since the styles are not camelCase.
Codesandbox link: https://codesandbox.io/s/3y3vvnpp6p
Versions (please complete the following information):
- react-jss: 8.6.1
- Browser [e.g. chrome, safari]: chrome
- OS [e.g. Windows, macOS]: macOS Feel free to add any additional versions which you may think are relevant to the bug.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Creating Amazon EventBridge rules that react to events
Open the Amazon EventBridge console at https://console.aws.amazon.com/events/ . In the navigation pane, choose Rules. Choose Create rule. Enter a Name and, ...
Read more >Create Rule - React on Event of Submitting Contact Form
At first, I was trying to do searching on the core triggers module and how to create my own trigger (which is not...
Read more >react-use-validator - npm
A React Hook to handle form validation messages. Latest version: 1.0.4, ... import useValidator, { createRule } from "react-use-validator";.
Read more >9 Ways To Implement CSS in React JS | by Dmitry Nozhenko
Today I want to tell you about css in React app. ... So now I only focus on javascript and react. ... Create...
Read more >a class name generator function - JSS
Counts how many elements use the same Style Sheet and automatically attach or detach it. It also acts similar to a WeakMap, because...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, the reason is that the setup of Jss instance you are using is for style tag rendering, so you need a custom setup for inline styles, without came-case plugin. We should document this somewhere.
Also you are a living proof this API is used and we probably shouldn’t remove it in #1076
yep.