Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Rocket3G2008yIt shouldn't really be that hard. You could dispatch an actionCreator in the componentWillMount method of the container.
The actionCreator will then use something like thunk to perform the REST calls to make it appear synchronous, while the actual REST calls are asynchronous.
Yeah, I understand while it appears hard at first. 😂 -
Rocket3G2008yI haven't worked with react native yet, but I did play with plain react for a little bit. Watched a shitload of tutorials on YouTube and read quite a few blog posts about react. After a while it just started to make sense to me and I really love it, especially Redux. Replaying all the actions a user performs is really powerful in the debugging process.
Have you figured it out, where to fetch the data? Or are you still trying to learn? -
Esper938yNo one is forcing you to use Redux. Yes, it's better to use it in the long run, but if you don't have the time/desire to learn it, then just use react without it.
Related Rants
That feeling when you were so happy about react-native, and was pretty sure at the beggining about the achitecture of your app and js libs you are about to use.
Im here sitting with redux, reselect and still dont know why I cant just do a REST call and format data in the container component.
Why react is so hard, or am I dumb?
undefined
javascript
ios
android
react-native
react
js