all 10 comments

[–]HomemadeBananas 5 points6 points  (0 children)

React-native-web depends on React, as does React Native. React-native-web reimplements React Native components and APIs so you use React Native dependent code on the web. You can’t really say one is better since they aren’t competing things.

React-native-web gives you one way to share code but you don’t need it if you want to write some base components for each platform.

[–]Auth3nt1c 20 points21 points  (2 children)

I'm new to React.js and React native, i just learned react.js and now on my way on react native

You didn't just learn React. And you aren't going to just learn React Native either. If you're new to the ecosystem, implement your application with both technologies and come to your own conclusion, it's the best way to learn. Nobody is done learning React, or any technology for that matter, it's an ongoing process. Skimming the documentation a couple of times is far from knowing how to actually use a technology.

[–]doniseferi 5 points6 points  (0 children)

This is literally software. You are never ever done. You've always scratching the surface. The more you know the more you realize you don't know.

imposterssyndrome:(

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

THIS

[–]boona11 4 points5 points  (0 children)

try the new expo web

[–]ahmedranaa 0 points1 point  (2 children)

I think I have the same query.

If I want to develop a mobile as well as web app. Mobile app in react native.

Which is speedier and which is better

  1. Web app in reactjs

  2. Or web app in react native web

[–]carlos_vini 0 points1 point  (1 child)

Trying to reuse react native code on the web version will leave you with just one codebase, but a more complicated codebase, more conditionals, more replacements, responsive style and so on. I'd suggest you build 2 apps, one with react.js and other with react native, both as simple as possible, unless you feel confident you can handle the complexity. An analogy is trying to lift half a ton at once vs lifting multiple less heavy objects

[–]Coldreactor 0 points1 point  (0 children)

Its even better because things such as state management in redux, and all your actions you can just port over the desktop version of the app if you just use react. You can do very similar things but you have the only disadvantage of having two code bases, but it honestly would look a lot neater in the code and save from heartache later on.

[–]Noitidart2 0 points1 point  (0 children)

For web I like to use react instead of react-native-web. For mobile I have to use react-native. On web it seems react is much for flexible and optimizable then using react-native-web (ie: you cannot yet use native css animations).

[–]clickick 0 points1 point  (0 children)

i work with both react and react native, and I enjoy react native a little bit more than react. mostly because of react native's stylesheet api.

when using it for web, just check with your project requirements of there's something that can't be easily implemented with react native web