Can we share code between react webapp and react native app and is react-native production ready

后端 未结 10 1299
终归单人心
终归单人心 2021-02-01 07:11

We have a stable version of a widget developed with reactjs. We would like to develop mobile version of the same. Is it better to develop with react native and share the code ac

10条回答
  •  盖世英雄少女心
    2021-02-01 07:19

    It can be shared among mobile app and web app. You'll certainly have to write your components again for mobile app. But you can always reuse the business logic.

    If you have used React in your web application, then the work becomes even easier. One of the major hazards in React native is State Management. Now the complexity depends upon your application. Usually it is advisable to use Redux along with React Native.

    The real question arises is how much code you will be able to share. Hope this helped.

提交回复
热议问题