I'd love it if a series like this was made where a React website and React Native app were made in tandem. Suggestions for project layout and architecture would show you how to reuse core business logic between both apps.
Perhaps even the view layers could have some overlap?
I currently work on a team that supports multiple native Android apps and an Angular 1.X web app. The ability to reuse code in this fashion is the biggest lure to React for me. I've seen a few blog articles that cover this topic at a shallow level. If anyone has resources they could share it would be much appreciated.
I haven't yet done any React Native, but it seems to me that hypothetically, you can share or not share as you go down the component tree. I can imagine dedicated layouts per platform, then shared widget clusters, then dedicated low-level widget implementations.
Yup, there is an entry point for both the Android and iOS app. You can point to the same root component or a separate one if you want separate layouts orwhat have you
If I only had more time... I'd love to write a guide on that. That really is a great idea!
I recently copied the entire state management part (done with redux) to a react native app and it just worked. Was a really cool thing to see. If I had RN in mind when I first made the site, it could have even more reuse.
This is a _great_ tutorial series! I've already added it to my React/Redux links list ([0}), and is definitely one that I'd point people to right away in the future, along with other tutorials like the official React docs ([1]), the "React to the Future" slideshow ([2]), and the "Learn Raw React - no JSX or ES6" tutorial ([3]).
This looks great, I like how it looks like it doesn't just jump straight into assuming the reader knows the tools of compiled Javascript.
One thing - I clicked a link very close to the top to get the pdf, I was sold quick. But the popup modal didn't say anything about why you wanted my Email, so I didn't enter it. I got to the bottom and say a small, light grey "no spam" promise so I eventually signed up, but I very nearly bounced.
first of all, that's theft. he has no right to distribute it independently, even if it is free. HN needs to remove that link
secondly, your email on a list that you can unsubscribe from is the price of what must have been hundreds of hours of work. if you like his course, he offers something even deeper you can buy. stop expecting everyone to give their life away for your benefit.
Perhaps even the view layers could have some overlap?
I currently work on a team that supports multiple native Android apps and an Angular 1.X web app. The ability to reuse code in this fashion is the biggest lure to React for me. I've seen a few blog articles that cover this topic at a shallow level. If anyone has resources they could share it would be much appreciated.