Add an official HTML -> JSX online converter
未關閉
還沒有人認領這個 Issue。
difficulty: advanced
in-progress
type: website
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 11
描述
We should take https://magic.reactjs.net/htmltojsx.htm, update it to output code compatible with React 16 (and make sure it respects the DOM attribute changes in it), and then host it on our website.
Then we can point "invalid DOM property" warnings to the converter, saving everyone new to React the headache of conversion. https://github.com/facebook/react/pull/11576
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先查看 https://magic.reactjs.net/htmltojsx.htm 中現有的轉換器,以及所連結的關於 DOM 屬性變更的 React pull request。確定相容於 React 16 的轉換器應如何託管在 React 網站上,以及無效 DOM 屬性警告應連結到何處。完成的標準是:託管的轉換器能夠產生相容的 JSX,並且這些警告會將使用者指向該轉換器。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- documentation, web-dev
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100