The best, most maintainable code, is code that matches the way you think about the problem, without a lot of noise
What do I mean by noise...?
Therefore, the best
Language / Framework / Library
FOR YOU
is the one that either:
A. Matches your way of thinking
B. Guides you to think in a different way
Succinct, expressive code, that lets you build complex web applications
"without a lot of noise"
useState()
useEffect()
const [state, setState] = useState()
useEffect(() => {
const sub = observable$.subscribe(
newState => setState( newState )
);
return () => sub.unsubscribe()
}, [])Syncing State
const [people, setPeople] = useState();
useEffect(() => {
const sub = ajax(ENDPOINT).subscribe(
({ response: { results } }) => {
setPeople(results);
}
);
return () => sub.unsubscribe();
}, []);RxJS.ajax()
RxJS is super popular across frameworks so, sometimes we get to use solutions from other communities, and there is just a lot of cool RxJS stuff out there
<$> React RxJS Elements
https://github.com/kosich/react-rxjs-elements
React-RxJS
https://react-rxjs.org/
RxJS State
https://github.com/BioPhoton/rxjs-state
Rx-Handler https://github.com/johnlindquist/rx-handler
Sanity.io
https://www.sanity.io/docs/client-libraries/js-client
Rx Visualizer
https://rxviz.com