#relay vs #redux: Which one you should choose?
▻https://hackernoon.com/relay-vs-redux-which-one-you-should-choose-6895fb72dfba?source=rss----3a
Many companies and developers ask themselves this question if they start talking about managing data inside a #react app. Usually, criteria are simple: easy to set up, easy to work with, decent documentation, large community. If we start considering relay and redux by these criteria which one will win? Let’s figure it out!What is Relay?Relay is a data manager from Facebook. It was initially built for react-native apps but later it became a tool for web apps as well.The idea of Relay is simple: you app needs to fetch only data your users need. It’s declarative way of describing what data is needed. A simple relay query would look like this:▻https://medium.com/media/8f945e452e651a96f7d4a37987a5cb92/hrefWe ask for user’s first name and last name. The server will only return to us these two (...)