V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
chengdonghui
V2EX  ›  React

使用 react-native 开发一个移动端的类似 ruby on rails 的开发框架,怎么样?

  •  
  •   chengdonghui · May 5, 2018 · 2240 views
    This topic created in 2914 days ago, the information mentioned may be changed or developed.

    自己用 rails 很多年,做了不少项目,最近在用 react-native 写个移动端的项目,觉得如果能在移动端也有个类似 rails 的开发框架,开发起来岂不是很爽?

    rails 是 mvc 的框架,实现基本思路如下:

    m:

    redux-orm。

    v 和 c:

    react-native component,分为 Presentational 和 Container Components,分别充当 v 和 c 的角色,可以参考这片文章 https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0。

    router:

    使用 react-native-navigation 来实现。

    有兴趣的可以探讨探讨。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1004 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:38 · PVG 03:38 · LAX 12:38 · JFK 15:38
    ♥ Do have faith in what you're doing.