HTML Tag & React ClassName
class = className
for = htmlFor
範例:
-
js
React.DOM.label({htmlFor: "id"}, "phone number is : ") ReactDOM.div(className: "poupou", null, "kkk"),
-
render(return...)
<label for="id"> phone number is </label> <div class: "poupou"> kkk </div>