react開發 Markdown文本編譯器
我用react開發了一個Markdown文本編輯器
主要用到:
marked
github-markdown-css
庫
https://github.com/ilvseyinfu... 地址在這
大魚幫我review後,個人收穫:css
- 項目要引入eslint eslint-config-bcd-react 大魚的
- 有狀態組件,只在render中寫jsx結構
- 中間可複用的jsx結構,寫成無狀態組件,不須要獨立到單獨文件,最簡單放在當前文件
- 使用es6以後,能夠不用var,只用let和const,儘可能只用const
- 觀察發現"複用的模式"
- index.js 是入口文件,pages/Markdown目錄下 index.js 和 style.css
![圖片描述 圖片描述](http://static.javashuo.com/static/loading.gif)
歡迎關注本站公眾號,獲取更多信息