MCPcopy
hub / github.com/cssinjs/jss / replaceRule

Method replaceRule

packages/jss/src/plugins/conditionalRule.js:62–66  ·  view source on GitHub ↗

* Replace rule, run plugins.

(name, style, options)

Source from the content-addressed store, hash-verified

60 * Replace rule, run plugins.
61 */
62 replaceRule(name, style, options) {
63 const newRule = this.rules.replace(name, style, options)
64 if (newRule) this.options.jss.plugins.onProcessRule(newRule)
65 return newRule
66 }
67
68 /**
69 * Generates a CSS string.

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.80
onProcessRuleMethod · 0.65

Tested by

no test coverage detected