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
-
I've been looking to use React for a new site we've got coming up. It's a big UI refresh and the previous codebase uses Angular 1. While I'm all for working with what you have it felt that with Angular 2, and its reported lack of backwards compatibility, we could take a fresh look at frameworks.
I like the look for React and did a simple hello world / intro tutorial, but the question is this: how does it handle a complicated UI? (And by complicated, something along the lines of a busy Netflix UI or the Amazon homepage) -
tahnik387588y@mattjbones redux library is the solution for complicated UI. As you already know all the data in React is basically states. And managing these states using react only is hard. This is where redux comes in. It is absolutely brilliant. It saves your necessary states as global states and you can access them from anywhere which makes state management super easy.
Also the components can be broken down to atomic parts so if have websites like amazon you can break it down to components and individually develop them. Redux also help in this part as well :) -
morgh6818y@tahnik just adding to your post.
Check out: https://egghead.io/courses/...
Takes 30 mins to go through the videos made by the creator of redux. He explains it very clearly. After watching it I was sold with this pattern of managing state. -
tahnik387588y@morgh Thanks for sharing knowledge. I was learning from udemy but I'll look into this sometime
Related Rants
First website with React JS:
After a month of studying on React I am finally building a commercial website with it. When I started learning React with redux and react router it felt so unnecessarily complex.
But trust me guys, all it takes is patience. Once you learn it creating a Web app is a breeze. And everything eventually makes so much sense. I'm so glad that I didn't give up and if you in the same position , DON'T GIVE UP. You'll eventually realise how amazing react is.
undefined
redux
react