JS.weekly() => #38

React Suspense vs React Hooks, CSS Flexbox, Windows with Linux and React Native vs PWAs.

JavaScripting.com
JS.weekly()
2 min readMay 9, 2019

--

When to use React Suspense vs React Hooks

Monads and Applicative Functors are extensively used in functional programming. There is a relationship between them and React Suspense for Data Fetching and React Hooks APIs. This is a quick and simple introduction to Monads and Applicatives along with a description of their similarities.

Breaking to a new row with flexbox

Here’s the challenge: if you want to create a flexbox layout with several rows of items, how do you control which item ends up in which row? Read more.

Windows Subsystem for Linux Brings the Full 4.19 Kernel to Windows

WSL 2 promises much-needed improvements to file IO performance, as well as native support for Docker, simplifying working with Linux containers. But it also enables fully Linux compatibility on Windows, making this a significant shift in what Windows can offer.

We are adding new libraries to JavaScripting.com every week. Here is one worth checking out:

Vue Js Modal

Simple to use, highly customizable, mobile friendly Vue.js 2.0+ modal.

One more thing. Check the latest article on Salsita Software blog from Matthew Gertner, who is CEO & founder of Salsita Software.

React Native, PWAs and the decline of native mobile app development

“If you are embarking on a new mobile app project, I would recommend that you first consider a PWA wrapped in Cordova, especially if you already have a development team with strong web skills. There are still legitimate reasons not to go the PWA route, such as the need for native-level UI performance (e.g. for video games) or access to bleeding edge native APIs for features like augmented reality. In these cases, React Native may be the right choice. But you should understand the trade-offs of the different approaches before rejecting PWAs.

The mobile app market is vast, and a single development framework “to rule them all” is unlikely ever to emerge. React Native and PWAs may end up happily sharing the limelight, or a new contender (Flutter?) may achieve primacy. One trend is clear already, however: truly native apps are losing their appeal as the breadth and quality of multi-platform alternatives is steadily improving.”

JS.weekly() is a weekly digest of the best JavaScript articles, hand-picked by our experts in the JavaScripting community, sponsored by Salsita Software. Don’t forget to follow us on Twitter.

--

--

JavaScripting.com
JS.weekly()

The best JavaScript, web development and general programming articles of the day. Sponsored by Salsita Software (http://www.salsitasoft.com)