UNPKG
layeshifter-fela
Version:
latest (10.2.10)
10.2.10
10.2.9
10.2.8
10.2.7
10.2.6
10.2.5
State-Driven Styling in JavaScript
rofrischmann/fela
layeshifter-fela
/
es
/
generateStaticReference.js
11 lines
(9 loc)
•
207 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
default
function
generateStaticReference
(
style, selector
) {
if
(
typeof
style ===
'string'
) {
return
style; }
if
(selector) {
return
selector +
JSON
.
stringify
(style); }
return
''
; }