@H_403_0@
@H_403_0@2.环境搭建(当然也可以直接使用webstorm) @H_403_0@安装packcontrol @H_403_0@安装Emmet @H_403_0@安装HTML-css-JSPrettify @H_403_0@安装Spacegray模板 @H_403_0@环境nodejs @H_403_0@
@H_403_0@3.Emmet语法 @H_403_0@子代:> div>ul>li @H_403_0@兄弟节点:+ @H_403_0@父代:^ div+div>span+em^bq @H_403_0@重复:* (div>dl(dt+dd)*3)+footer>p @H_403_0@成组:() @H_403_0@ID:# @H_403_0@class:. @H_403_0@属性:[] @H_403_0@
@H_403_0@4.入门实例 @H_403_0@
<!DOCTYPE html> <html lang="zh-cn"> <head> <Meta charset="UTF-8"> <title>React</title> </head> <body> <script src="./build/react.js"></script> <script src="./build/JSXTransformer.js"></script> <script type="text/jsx"> var HelloWorld = React.createClass({ render:function () { return <p>Hello,World!</p> } }); React.render(<HelloWorld></HelloWorld>,document.body); </script> </body> </html>