DEV Community

Discussion on: React Beginner Question Thread ⚛

Collapse
 
rajsek profile image
Raja Sekar Durairaj

Hi Abramov,
Since react is a library to handle view, most of the dev choose a separate library(like redux and mobx) for state management.

I am curious to know, following questions
1) How Facebook handle's application state?
a) Are they using any libraries? or
b) Are they simply follow flux pattern without any libraries support?

Thanks,
Rajsek

Collapse
 
dan_abramov profile image
Dan Abramov

FB mostly uses just Flux ReduceStore. Which is similar to Redux, but FB tends to use many stores rather than just one. For data fetching, FB mostly uses Relay (Modern where possible). A lot of components also use local state as well.

I wouldn't say any of these patterns are perfect. We're still figuring this out.