Closed jfurrow closed 8 years ago
@jfurrow -- I will see if I can address this... in some way... in the meantime can you provide me links to any appropriate documentation you have for the #isCustomAttribute
usage for React?
@jhamlet Sorry for the delay. I did end up finding a workaround within React, so my request is probably not necessary. But here's how it was solved: https://github.com/dcos/dcos-ui/blob/master/src/js/utils/ReactSVG.js
Feel free to close this issue, unless you think it's worth implementing.
Now available in v0.4.0-beta.2
Hey, thanks for this loader! It's really helpful.
I would like the ability to specify a whitelist of attributes that should not be camel-cased. Right now the loader will output all
fill-rule
attributes asfillRule
, which React0.14.x
doesn't interpret properly.By making use of React's
#isCustomAttribute
, it is possible to instruct React to createfill-rule
attributes properly. Howeverfill-rule
must be specified with the hyphen, instead of the camel-casedfillRule
as this loader currently produces.I've tested this by adding a
'fill-rule'
key and value to theRESERVED_KEYS
hash insanitize.js
and it works as expected.If you've already address a workaround for this, I apologize for not finding it!