r/reactnative • u/alliwanabeiselchapo • Dec 25 '18
Question Should I learn ReactJS before learning React Native? What do I need to learn before starting with react native?
18
Upvotes
r/reactnative • u/alliwanabeiselchapo • Dec 25 '18
22
u/[deleted] Dec 25 '18
I actually learned ReactNative before reactjs -- just read the docs, look at examples.
7
u/XiMingpin91 Dec 25 '18
Well you use React with React Native so you can certainly learn the two together. React Native is basically just a different renderer, the web equivalent would be React Dom.
1
u/alliwanabeiselchapo Dec 25 '18
What about jsx and typescript
5
u/[deleted] Dec 25 '18
React, a state management library, and lots of JavaScript fundamentals
5
u/janithaR Dec 25 '18
You must definitely learn Javascript. After that, there isn't much of a difference on whether you learn ReactJS or React Native first. They both go hand in hand IMO.
7
u/matt_hammond iOS & Android Dec 25 '18
React is quite simple actually. Most of React concepts apply to React Native. The hardest part for newbies is that you have to learn multiple things in parallel. React, Redux/other state management, ES6...
Make sure you grasp ES6 really well. Async/await is a must if you wanna write readable code.
You can start learning react native and learn ES6 as you go.
2
u/mauking Dec 25 '18
If your primary objective is learning React, and you already know JavaScript/HTML, then it's easier to learn plain React first without the overhead of the React Native additional stuff. Practice in the browser. Everything React-related is available there. If you then want to write for mobile, use your existing knowledge of React to pick up React Native extra stuff.
1
u/LordRaiders Dec 25 '18
No, I started with React Native as well and it worked perfectly. The concept is the same so you can use the React when you know React Native.
I do recommend to look into basic knowledge of Java and Objective C. It helps a lot when using React Native.
1
u/Delphicon Dec 25 '18
I'd say its not necessary but it's easier unless you're already a mobile developer. React Native is just more complicated under the hood and for someone who just wants to learn the JS part it's easier to just stick with the web.
I just went straight into React Native because I wanted to learn the advanced stuff as well.
1
u/HomemadeBananas Dec 25 '18
React Native works the same a writing React web apps. They both use the React package, but for web you have react-dom and not react-native. I started with React Native.
-7
u/popc0ne Dec 25 '18
You don’t have to learn react before react-native... also, use expo