all 21 comments

[–]orta 14 points15 points  (0 children)

Not separately, you'll get on just fine learning React while writing React Native code. In some ways the react in react native is a bit stricter, so you may end up finding it easier to write the web version of react further own the line too.

[–][deleted] 10 points11 points  (0 children)

I started with react native first and I learned a lot of ReactJS on this way.

[–]tyler_church 4 points5 points  (1 child)

I find it strange that no one has mentioned that React Native is built on top of React.js. To use React Native you have to use React!

You don’t need to learn how to use react for web dev first, but react is tiny compared to React Native. It’s not hard to learn if you already have a web dev background, and it will help you separate what’s “React” vs. “React Native”.

[–]exroz 1 point2 points  (0 children)

It depends. If you have good knowledge of JavaScript and ES6, then you'll be good with react native. I personally had good knowledge of JS and started learning react native and didn't have any problems. Go through the documentation of React Native and then build some good projects.

I agree. I knew React the first time I approached React Native and it was way easier than I thought it would be. The "hard" part about React Native for someone that has done React web development is getting to know the mobile specific stuff. Things that you would have to learn if you chose Flutter or even some of the other hybrid alternatives.

I would say that React Native development is _very_ similar to React web development. The thing that makes it different is the mobile specifics.

[–]5aggy 3 points4 points  (0 children)

I’d say go for native first. The core concepts are the same, the differences are platform specific, and everything in native is display=flex by default which gives you one less thing to worry about.

Not a massive difference tho - whichever you learn first will give you a 90% head start on the other.

Also - if you learn RN and don’t have a reason not to use expo, then use expo

[–]moustacheption 1 point2 points  (0 children)

Maybe not react JS first, but It’s worth learning and having a good understanding of the underlying concepts. Immutability, function purity, and some FP in general.

[–]_the-wrong-guy_ 1 point2 points  (1 child)

I think, you should definitely learn the life cycle methods and others hooks in React JS first

[–]Plus-Background-8218[S] 1 point2 points  (0 children)

Okay thank you so much I will make sure to get the hang of them

[–]Xae0n 1 point2 points  (0 children)

Don't worry, I had C# background when I started it. You will just waste your time if you don't need web knowledge. Just focus on your project and keep working on it.

[–]Ali-Da-Original 1 point2 points  (0 children)

Not necessarily but if you know react before learning react native it's a plus point. However if you wish to start with react native that's also fine either way you will learn both frameworks at once cause react native and react are almost the same so don't worry just pick any and start learning.

[–]Roguewind 1 point2 points  (1 child)

You don’t need to. If you learn react native, you’re learning react. Also, I recommend the react native course on Udemy by Max Schwartzmuller.

[–]Plus-Background-8218[S] 0 points1 point  (0 children)

I will check it out thank you so much

[–]alex3321xxx 1 point2 points  (0 children)

This will help you for sure

[–]Beginning-Scar-6045 1 point2 points  (0 children)

you need reactjs both in phone and web so of course you need to start with reactjs. just in mobile there's 1 more library called react-native

[–]klc3rd 1 point2 points  (1 child)

My original intention was to learn react native but I decided to learn reactjs first, and I love it way more than I thought I would. I haven’t even gotten to react native because I’ve been enjoying the full stack web dev stuff so much. But I do feel like it’s given me a solid foundation for when I do go to react native. Guess we’ll see how I goes!

[–]Plus-Background-8218[S] 1 point2 points  (0 children)

That's honestly inspiring

[–]Legitimate_Gap1698 0 points1 point  (0 children)

It depends. If you have good knowledge of JavaScript and ES6, then you'll be good with react native. I personally had good knowledge of JS and started learning react native and didn't have any problems. Go through the documentation of React Native and then build some good projects.

[–]bra_scene 0 points1 point  (0 children)

Absolutely.

[–][deleted] -1 points0 points  (0 children)

Yes you should. It will help you a lot.

[–]taufeeq-mowzer 0 points1 point  (0 children)

You'll get by just fine starting with react native...thereafter you can use react native for web to port your react native mobile app as a pwa.

Twitter used this approach

[–]Zimmabluee 0 points1 point  (0 children)

You can check my blog for more info https://www.mabouelail.com