Predicting The State of Front End Development: 2021 Edition

Written by browserlondon | Published 2021/01/16
Tech Story Tags: front-end-development | web-development | frontend | frontend-development | react | nextjs | wasm | good-company

TLDRvia the TL;DR App

If 2020 has proven anything, itā€™s that predicting the future is a mugā€™s game. With that said, here are my predictions for where front-end development is heading over the next 12 months šŸ™„

React frameworks finally mature

Frequently referred to as the ā€˜Vā€™ in MVC,Ā ReactĀ has both benefited and suffered from its lack of an opinionated framework. Years on and weā€™ve not seen the industry coalesce on a single stack, architecture or blessed toolchain. While this flexibility has undoubtedly aided its popularity, 2021 may be the year we finally see such frameworks reach maturity.
Over the last yearĀ VercelĀ has continued to dominate the React space, growing their framework,Ā Next.jsĀ and their self-titled service offering ā€” all while launching anĀ e-commerce starter kit, anĀ analytics tool, and hosting their largest (virtual) conference yet. While Next has been on the scene for a long time, itā€™s come a long way from its buggy beginnings. The batteries-included approach isnā€™t for everyone, but additions over the past year have culminated in aĀ v10 releaseĀ thatā€™s both stable and surprisingly mature (sub-path routing at last šŸ™).
- Vercel was trying hard to channel Apple with their latest Keynote, complete with product ā€˜dropsā€™ and all-black attire.
Adding to the mix this year was the quiet ā€˜supporter previewā€™ launch of Remix, a new closed-source React framework. Created by two of the biggest names in the community, Jackson and Florence ofĀ React Router fame, Remix takes a different approach from Next ā€” both in business model (charging a modest sum for an annual license fee) and philosophy (Remix is a product, not a platform). Instead of leaning into static page generation, Remix promises to leverage more traditional techniques, such as aggressive HTTP caching, and refocus onĀ web fundamentals.
Itā€™s early days ā€” Remix isnā€™t due to officially launch until next year ā€” and weā€™re unlikely to ever approach the cohesive vision that an all-in-one tool such asĀ EmberĀ enjoys. Nevertheless, itā€™s refreshing to see developments in what has long been a stagnant space.

We get a glimpse at container queries

The desire for container queries has reached fever pitch. With Google finally announcing theirĀ intent to prototype, 2021 might be the year we get our first look at them.
In the meantime, the increased adoption ofĀ intrinsic web designĀ combined with APIs such as CSSā€™sĀ min/max/clampĀ and JavasScriptā€™sĀ ResiveObserverĀ provide ever better methods of ā€˜faking itā€™. These kind of implementations have gotten increasingly (maybe even dangerously?) elaborate over the last few months, and itā€™s hard to imagine that this trend will stop next year.
Iā€™m hopeful weā€™ll see more smart ways of approaching container-first design, such as Mathiasā€™sĀ RavenĀ and Heydonā€™sĀ Watched Box.

WASM explodes

The adoption ofĀ WebAssemblyĀ (WASM) has been slow, in no small part due to its positioning as a specialist tool (ā€˜youā€™ll know if you need itā€™). However, in 2021 weā€™re likely to see that mindset shift.
With the role of the front-end developerĀ creeping towardsĀ the domain of ā€˜full-stackā€™, weā€™re starting to see more engineers embrace lower-level systems languages such asĀ Rust, which is currently enjoying an unparalleled boom inĀ interest, despite the initial uncertainty following the Mozilla layoffs.
As a consequence, weā€™re seeing WASM-based solutions such asĀ YewĀ andĀ Seed.rsĀ enter the front-end framework wars. Benefiting from the performance andĀ safetyĀ that Rust provides, itā€™s likely that 2021 will be the year we start to see a massive boom in production WASM.
Weā€™re a long way off from any of these taking the spotlight away from the big players, but Iā€™m confident adoption will spike in 2021.

The monolith makes a come back

The industryā€™s love of distributed services and carefully partitioned responsibilities continues, having evolved past the back-end (micro-services) and hit its unfortunate peak in 2019 with the introduction of (equally maligned and loved) micro-frontends. The UNIX-philosophy approach to architecture continues to rein ā€” at least in the domain of tech reports and Medium articles.
Over the last few years, the widespread use of micro-services has necessitated patterns such asĀ Backend For FrontendĀ (BFF), which introduces an intermediary between each client and the APIs which service it.
- The BFF acts as the ā€˜glueā€™ that is the clientā€™s single point of contact. This allows for it to be tightly coupled (and very well suited) to the client it services.
This is particularly relevant in 2021 given the current interest in the JAMStack, which, at its most complex,Ā suffers under the weightĀ of its service dependencies. The answer to ā€˜how do I federate my APIsā€™ will be, amusingly: build one.
Weā€™re sure to see the adoption of the BFF technique increase in 2021, but ā€” with a little luck, we might also see the gradual return to the monolith ā€” or at least a slow retreat in the form of larger ā€˜macro-servicesā€˜ or compromises such as theĀ citadel.
No doubt Basecampā€™s DHH, the mostĀ vocal proponentĀ of the ā€˜majesticā€™ monolith (who recently launched yet another proudly traditional web-app, Hey) will be leading the charge.

In summary

Interestingly, the biggest developments in the front-end are unlikely to be traditionallyĀ front-endĀ concerns. Back in ourĀ 2019Ā forecast, we noted that the role of the front-end developer was increasingly shifting towards ā€˜full-stackā€™, and this has borne out to be true. Even the evolution of our frameworks and tools suggests this, with an increased focus on data-fetching, concurrency, security and scalability.
There is a natural meeting point occurring, where engineers are faced with increasingly ā€˜back-endā€™ problems while tooling and services are becoming sophisticated enough to lower the barrier to entry. Itā€™s a perfect storm, and I expect to see it continue throughout 2021.

Written by browserlondon | London-based agency specialising in UX design, we also know a thing or two about engineering
Published by HackerNoon on 2021/01/16