DEV Community

Discussion on: My go-to React libraries for 2021

Collapse
 
rexebin profile image
Rex

Love React Query, best library ever.
With React Query managing data for me, I find myself not wanting any third-party state management library. React's own state management is more than enough!

Coming from the same author as React Query, @tannerlinsley , React Table is a headless table library, loving it too, making tables has never been so easy.

Form: React Hook Form with yup, yes, love it.

Tooling/Building: Nrwl/Nx, love it.

UI: Material UI, love it.

Editor: TinyMCE, so easy to work with, coupled with React Hook Form, template-based document editing is so easy to build.

For importing Excel: xlsx, love it

Data table: Ag-Grid

Collapse
 
daveappz profile image
David

We recently migrated from MOBX to SWR, interested in trying out react query now. MUI for sure, I prefer react form hook over formik any day, yup yup. We built our own data table hook but it’s gotten bloated and causing perf issues. Diggin reacts provided tools, they seem to keep it logical without any waving hands in the way.

Collapse
 
lewiskori profile image
Lewis kori • Edited

I'm to new react, been using vue for a long time.
I'm curious how SWR is interchangeable with mobx.

Isn't SWR for data fetching? while mobx acts as a global store?

is there something I'm missing here with SWR so I can completely get rid of mobx.

no hate for mobx though. I love it and it's more or less similar to vuex if you've used vue.js

 
daveappz profile image
David

You are correct, One wasn’t intended to replace the other per say, it has more to do with the type of app it is. It’s a teacher student math tool with focus on live interactions between them. So we’re making frequent api calls, as well as web sockets coming in for every problem answered. This causes an already taxing state management system to get triggered unnecessarily. And with SWR fetching the most recent data whether it be from ws or http it’s just not necessary to be storing all that in state. Miss MOBX tho, used the console getStore all the time. Now I’m stuck either drilling through REACTdevtools component section or simply console logging. Learning exactly how and when to use, useRef, useState, useMemo, useEffect, or context has been beneficial, personal skill wise.

I haven’t used Vue. Some redux and been curious about Sustand, but for now it’s classic State management for me.

😂😂

 
lewiskori profile image
Lewis kori

Got you 😂

that sounds like a lot of work my friend. All the best lol.

Collapse
 
buriti97 profile image
buridev

React Query is awesome