1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        dva輕量級 JS 框架

        聯合創(chuàng)作 · 2023-09-19 11:31

        基于 React 和 Redux 的樹型結構輕量級 JS 框架。(靈感來自 Choo)。

        特點:

        • 基于 redux、redux-saga 和 react-router:站在巨人的肩膀上。

        • small api:僅 5 個 api 方法,很容易學習。

        • elm cocepts:基于 reducers、effects 和 subscriptions 的組織模型。

        • 支持 mobile 和 react-native:跨平臺。

        • 動態(tài) model 和 router:拆分大型應用程序和負載的需求。

        • plugin system:可擴展 dva。

        • hmr support with babel-plugin-dva-hmr

        簡單使用方法:

        import dva, { connect } from 'dva';
        
        // 1. Create app
        const app = dva();
        
        // 2. Add plugins (optionally)
        app.use(plugin);
        
        // 3. Register models
        app.model(model);
        
        // 4. Connect components and models
        const App = connect(mapStateToProps)(Component);
        
        // 5. Config router with Components
        app.router(routes);
        
        // 6. Start app
        app.start('#root');
        瀏覽 26
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            肏逼网站入口 | 中文字幕成人影视 | 日韩精品毛片无码一区二区三区 | 日本少妇免费视频一三区 | 少妇受不了叫闺蜜一起 | 欧美xxx视频 | 密臀av夜夜澡人人爽人人 | 天天干妹子| 一级A婬片直播 | 国产精品国产三级国产a |