12

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?

Comments
  • 2
    If you don't think you need to use Redux, then you probably don't :)
  • 2
    It 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. 😂
  • 0
    @Rocket3G You also tried to make it sound simple, but naaah, its react
  • 1
    I 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?
  • 1
    Working with react, redux, reselect, and other react super duper libs be like, whats my next tutorial?
  • 1
    No 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.
Add Comment