Github on vanilla JS, Ionic 4 is framework-agnostic, state-machines in React, and more
Hi there 👋 This is Ianis, and this is the 144th issue of the WJS. I just wanted to start by saying thank you for all your love! The number of subscribers keeps growing and we're gradually approaching 700 here 💪 At the same time I feel, that the very format that worked for several years is becoming a little old, and I think it needs some improvement. I have several ideas about this. So stay tuned. Changes are coming.
This is huge — among other serious changes, there's one that stands out for me. From now on it's claimed to be framework-agnostic, which in theory I guess means that you can use it a simple UI library for React, or no framework at (currently you have to deal with Angular). Web Components are now being put in the center of everything. Sounds very promising.
Good work on highlighting the quircks and the imperfectnesses of the Promises API when it comes to error-handling.
Did you know that you can actually use a node debugger in a browser to eh debug your app? It uses what is called the "v8 debugger protocol viewer", so you can pretty much use the good old Chrome DevTools to interact with the internal node debugger, which is pretty handy, don't you think?
The idea here is to use a higher-order component to abstract the complexity and remove repeatability of loading data with the help of, you guessed it, state machines!
State Machines seem to be gaining popularity among React-ers these days. Can't blame them. Redux, Mobx and other solutions are complex, while state machines are simple and kinda more fundamental I guess. With the arival of React Context API, which allows to pass the data throught the component tree without having manually to pass it on every level, it is now easier to use FSM to manage the data.
In this fascinating read, Airbnb's Joe Lencioni talks in detail about how to investigate the React performance issues and the ways of fixing them. The working example being the actual Airbnb page, which uses hypernova (Airbnb's own library) for server-side rendering of a React app.
obiwankenoobi/react-express-boilerplate: fullstack boilerplater using Express.js as the backend and React.js as the frontend
LEARN FROM CODE
@amiocn did a great job with a very stright API and beautifully-simple documentation. Although not quite sure I could use it for anything but definetely worth having a look at the code and learn something!