1. React
  2. React Amsterdam
  3. 2019
  4. Sharing Code Between React and React-Native: What Not to Share

Sharing Code Between React and React-Native: What Not to Share

Ben Ellerby at React Amsterdam 2019

React and React-Native allow a learn once write anywhere paradigm. This is great, because one tech team can build both your web app and native mobile experience. The problem is developers hate writing things twice. There have been a couple of efforts to build a unifying technology to write an application once and have it work on both web and native. Yet this is not always the best approach. There is value in only sharing your business and state logic; keeping your render code separate. In this talk I will give real examples from my work with MADE.COM, migrating their web and mobile application to React and React-Native with code sharing as a primary objective.