Re:React 16
by iBelieve on Tuesday September 26, 2017 @03:59PM
(#15342033)
I think you can (with a warning), but it's still recommended to use the normal React naming conventions according to [0]:
> Note: always use the canonical React naming for all supported attributes.
Looking through the examples, it looks like non-string class values will be converted to strings, while non-string className values will be ignored (with a warning).
> Note: always use the canonical React naming for all supported attributes.
Looking through the examples, it looks like non-string class values will be converted to strings, while non-string className values will be ignored (with a warning).
[0] https://facebook.github.io/react/blog/2017/09/08/dom-attribu...