創建React Apps的骨架:essential-react

jopen 10年前發布 | 25K 次閱讀 JavaScript開發 essential-react

essential-react是一個骨架用于使用ES6構建可測試的React應用程序。

設計目標

  • As few tools as possible (no task runners, etc...)
  • ES6 with support for legacy browsers (IE 8)
  • Testability
  • No templates, compose DOM alongside components via JSX
  • No stylesheets, leverage Radium for styling in JavaScript
  • Session-driven routing using react-router with async data fetching
  • </ul>

    項目結構

    組件被分成2個主要類別:

    • common - contains various classes and components that are shared between pages and views
    • pages - contains components grouped by the page / view / feature they belong to.

    項目主頁:http://www.baiduhome.net/lib/view/home/1426062896857

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!