4 ms·
It’s true that there are a lot of different ways to do the same thing, but the good news is you’re doing the same thing and the difference is mostly just syntax
by cehrlich 4y ago
It’s true that there are a lot of different ways to do the same thing, but the good news is you’re doing the same thing and the difference is mostly just syntax. Someone who has used Redux extensively can get up and running with Zustand in no time, and vice versa. Likewise React Query and Apollo Client are basically the same thing.
Build tools are a bigger issue, but fortunately most front end devs don’t actually need to deal with them all that often.
- msie 4y agoAs if it's so easy to move from one thing to another. Yikes!
- azemetre 4y agoSome libraries will create code mods to assist in transitions. For example I've used some MUI codemods in the past to make transitions to newer versions of the library more seamless [1]. There are also codemods to say move from underscore to lodash and vice versa (been a while and can't find them at the moment). ASTs [2] are pretty cool in this regard. Especially if you write your code in a manner that easier to automate against. [1] https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md https://github.com/mui/material-ui/blob/master/packages/mui-... [2] https://en.wikipedia.org/wiki/Abstract_syntax_tree https://en.wikipedia.org/wiki/Abstract_syntax_tree