當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
离线转义 reactjs JSX
生活随笔
收集整理的這篇文章主要介紹了
离线转义 reactjs JSX
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
為什么80%的碼農(nóng)都做不了架構師?>>> ??
Offline Transform
First install the?Babel?command-line tools (requires?npm):
npm?install?--global?babel-cli npm?install?babel-preset-reactThen, translate your?src/helloworld.js?file to plain JavaScript:
babel?--presets?react?{源代碼目錄}?--watch?--out-dir?{輸出目錄}Note:
If you are using ES2015, you will want to also use the?babel-preset-es2015?package.
轉載于:https://my.oschina.net/wolfx/blog/615785
總結
以上是生活随笔為你收集整理的离线转义 reactjs JSX的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Zabbix server is not
- 下一篇: Babelfish (STL)