Home/Frontend
Topic

Frontend

1,512 articles on Frontend.

11,739 articles
Frontend — Useful React Hooks That You Can Use In Your Projects — Smashing Magazine

Useful React Hooks That You Can Use In Your Projects — Smashing Magazine

React class-based components are messy, confusing, hard for humans and machines. But before React 16.8, class-based components were mandatory for any projects that require states, life-cycle methods, and many other important functionalities. All these changed with the introduction of hooks in React 16.8. Hooks are game-changers. They have simplified React, made it neater, easier to write and debug

IDIfeanyi DikeIfeanyi Dike·November 12, 2021Frontend
Frontend — Semantic menu context

Semantic menu context

Scott digs into the history of the <menu> element. He traced it as far back as HTML 2 (!) in a 1994 changelog. The vibe then, it seems, was to mark up a

CCChris Coyier·November 11, 2021Frontend
Frontend — Localizing Your Next.js App — Smashing Magazine

Localizing Your Next.js App — Smashing Magazine

Internationalized routing is not exactly a new feature on Next.js. (It has been out since [v.10](https://nextjs.org/blog/next-10).) In this article, we are not only checking what we get from this feature, but also how to leverage such functionalities to achieve the best user experience and a smooth developer experience as well. Keep reading if you enjoy self-documented code, lean bundle-sizes and

AFAtila FassinaAtila Fassina·November 9, 2021Frontend
Frontend — The State Initializer Pattern

The State Initializer Pattern

A simple pattern used in libraries like downshift and ReachUI to enable component/hook users to initialize your state and even reset it to that initial value.

KCKent C. DoddsKent C. Dodds·November 5, 2021Frontend
Frontend — GraphQL On The Front-End (React And Apollo) — Smashing Magazine

GraphQL On The Front-End (React And Apollo) — Smashing Magazine

Within the last decade, technologies like GraphQL have changed how we build web apps and how they communicate with each other. GraphQL provides certain benefits over REST APIs — let’s find out what they are. In this article, David Atanda will cover advanced topics to achieve real-time update of data using the update() function, subscription, and Optimistic UI. All in a bit to improve user experien

DADavid AtandaDavid Atanda·November 4, 2021Frontend
Frontend — How to React ⚛️

How to React ⚛️

Let's see how learning React ⚛️ in the right order can make it less overwhelming.

KCKent C. DoddsKent C. Dodds·November 3, 2021Frontend
Frontend — A Deep Dive Into Serverless UI With TypeScript — Smashing Magazine

A Deep Dive Into Serverless UI With TypeScript — Smashing Magazine

Serverless UI is simply a free, open-source command-line utility for quickly building and deploying serverless applications on the AWS platform. In this article, we will learn and cover everything needed on using Serverless UI to deploy our projects or serverless applications to cloud services providers.

IAIkeh AkinyemiIkeh Akinyemi·November 3, 2021Frontend
Frontend — Responsible JavaScript

Responsible JavaScript

High five to Jeremy on the big release of Responsible JavaScript on A Book Apart. There is a lot of talk about how the proliferation of JavaScript has had a

CCChris Coyier·November 2, 2021Frontend
Frontend — CSS-ing Candy Ghost Buttons

CSS-ing Candy Ghost Buttons

Recently, while looking for some ideas on what to code as I have zero artistic sense so the only thing I can do is find pretty things that other people have

ATAna TudorAna Tudor·October 31, 2021Frontend
Frontend — Sticky Definition Lists

Sticky Definition Lists

I ran across this 30 seconds of code website the other day, and they have a CSS section which is really good! The first example snippet I looked at was this

CCChris Coyier·October 27, 2021Frontend
Frontend — Optimizing Next.js Applications With Nx — Smashing Magazine

Optimizing Next.js Applications With Nx — Smashing Magazine

Nx is a build framework that facilitates optimization, efficient scaling of applications, and other features such as shared libraries and components. In this article, Melvin Kosisochukwu will be looking at how you can effectively scale Next.js applications by using Nx. If you’re a developer looking to optimize applications and create reuseable components across applications, this article is for yo

MKMelvin KosisochukwuMelvin Kosisochukwu·October 26, 2021Frontend
Frontend — A Deep Dive Into object-fit And background-size In CSS — Smashing Magazine

A Deep Dive Into object-fit And background-size In CSS — Smashing Magazine

If we use a width and height that isn’t proportional to the image’s aspect ratio, the image might either be compressed or stretched. That isn’t good, and it can be solved either with object-fit for an img element or by using background-size. In this article, Ahmad Shadeed will go through how `object-fit` and `background-size` work, when you can use them, and why, along with some practical use case

ASAhmad ShadeedAhmad Shadeed·October 25, 2021Frontend
Frontend — Introducing the Payment Element

Introducing the Payment Element

Today, we're introducing the Payment Element, an embeddable UI component for your checkout flow that supports 18 payment methods with a single integration.

MCMurray ChapmanMurray Chapman·October 20, 2021Frontend
Frontend — Smart CSS Solutions For Common UI Challenges — Smashing Magazine

Smart CSS Solutions For Common UI Challenges — Smashing Magazine

Writing CSS has probably never been more fun and exciting than it is today. In this post we’ll take a look at common problems and use cases we all have to face in our work and how to solve them with modern CSS. If you’re interested, we’ve also just recently covered [CSS auditing tools](https://www.smashingmagazine.com/2021/03/css-auditing-tools/), [CSS generators](https://www.smashingmagazine.com/

CMCosima MielkeCosima Mielke·October 14, 2021Frontend
Frontend — Bonsai Browser

Bonsai Browser

Web-browser for research that helps programmers think clearly.

CCChris Coyier·October 13, 2021Frontend
Frontend — WooCommerce + Google Analytics

WooCommerce + Google Analytics

Google Analytics is powerful analytics software. A common way to use it is to just slap the JavaScript snippet on every page template you have and let it

CCChris Coyier·October 12, 2021Frontend
Frontend — Useful React APIs For Building Flexible Components With TypeScript — Smashing Magazine

Useful React APIs For Building Flexible Components With TypeScript — Smashing Magazine

React with JSX is a fantastic tool for making easy-to-use components. Typescript components make it an absolute pleasure for developers to integrate your components into their apps and explore your APIs. Learn about three lesser-known React APIs that can take your components to the next level, and help you build even better React Components in this article.

GKGaurav KhannaGaurav Khanna·October 12, 2021Frontend
Frontend — The Autofill Dark Pattern — Smashing Magazine

The Autofill Dark Pattern — Smashing Magazine

A “dark pattern” is a deceptive UX pattern that tricks users into doing things they may not really want to do. Autofill is a widespread feature either by choice or by accident: who hasn’t accepted to let the browser save/use web form information, either on purpose or by mistake? In this article, Alvaro Montoro does a little experiment to find out how much privacy is taken away from users across th

AMAlvaro MontoroAlvaro Montoro·October 11, 2021Frontend
Frontend — Composable CSS Animation In Vue With AnimXYZ — Smashing Magazine

Composable CSS Animation In Vue With AnimXYZ — Smashing Magazine

Most animation libraries like GSAP and Framer Motion are built purely with JavaScript or TypeScript, unlike AnimXYZ, which is labelled “the first composable CSS animation toolkit”, built mainly with SCSS. While a simple library, it can be used to achieve a lot of awesome animation on the web in a short amount of time and little code. In this article, Ejiro Asiuwhu will show you how to use the Anim

EAEjiro AsiuwhuEjiro Asiuwhu·October 9, 2021Frontend
Frontend — A Guide To CSS Debugging — Smashing Magazine

A Guide To CSS Debugging — Smashing Magazine

Debugging in CSS means figuring out what might be the problem when you have unexpected layout results. Today, Stephanie Eckles will look at a few categories bugs often fit into, see how you can evaluate the situation, and explore techniques that help prevent these bugs.

SEStephanie EcklesStephanie Eckles·October 6, 2021Frontend
Frontend — How To Build An Expandable Accessible Gallery — Smashing Magazine

How To Build An Expandable Accessible Gallery — Smashing Magazine

One of the use cases for using CSS Grid is to display a gallery of images, but a gallery on its own may not be that exciting. In this article, Silvestar Bistrović will be looking at how to set up a gallery that is expandable as well as accessible with a few tips and tricks along the way. Let’s get started!

SBSilvestar BistrovicSilvestar Bistrovic·October 4, 2021Frontend
Frontend — Comparing HTML Preprocessor Features

Comparing HTML Preprocessor Features

Of the languages that browsers speak, I'd wager that the very first one that developers decided needed some additional processing was HTML. Every single CMS

CCChris Coyier·September 30, 2021Frontend
Frontend — Open-sourcing Mariana Trench: Analyzing Android and Java app security in depth

Open-sourcing Mariana Trench: Analyzing Android and Java app security in depth

We’re sharing details about Mariana Trench (MT), a tool we use to spot and prevent security and privacy bugs in Android and Java applications. As part of our effort to help scale security through building automation, we recently open-sourced MT to support security engineers at Facebook and across the industry. This post is the third […]

CWChris Wiltz·September 29, 2021Frontend
Frontend — Our Learning Partner: Frontend Masters

Our Learning Partner: Frontend Masters

Frontend Masters has been our learning partner for a couple of years now. I love it. If you need structured learning to up your web development skills,

CCChris Coyier·September 24, 2021Frontend
Frontend — Rebuilding A Large E-Commerce Website With Next.js (Case Study) — Smashing Magazine

Rebuilding A Large E-Commerce Website With Next.js (Case Study) — Smashing Magazine

Developing with Next.js is amazing, but there are definitely some challenges. The developer experience with Next.js is something you just need to experience. We made the switch from a more traditional integrated e-commerce platform to a headless platform with Next.js. Here are the most important lessons learned while rebuilding a large e-commerce site with Next.js.

JKJonne KatsJonne Kats·September 24, 2021Frontend
Frontend — Simplifying Form Styles With accent-color — Smashing Magazine

Simplifying Form Styles With accent-color — Smashing Magazine

The new CSS `accent-color` property makes it quick and easy to roll out our brand colors to certain form inputs by leveraging user agent styles. It has the potential to provide quick and easy styling for many of our form elements, especially where extensive customization isn’t needed, as well as allowing the browser to pick the best options for accessibility. In this article Michelle Barker will t

MBMichelle BarkerMichelle Barker·September 23, 2021Frontend
Frontend — Proposal for CSS @when

Proposal for CSS @when

CSS is on a tear lately. Again, I've heard of a brand new thing I've never seen before, and again it's via Miriam: CSS Conditionals.

CCChris Coyier·September 21, 2021Frontend
Frontend — imba

imba

It's not every day you see a new processor for building websites that reinvents the syntax for HTML and CSS and JavaScript. That's what imba is doing.

CCChris Coyier·September 20, 2021Frontend
Frontend — Designing Beautiful Shadows in CSS

Designing Beautiful Shadows in CSS

My favorite kind of blog post is when someone takes a subject that I’ve spent all of five minutes considering and then says—no!—this is an enormous topic

RRRobin RendleRobin Rendle·September 17, 2021Frontend
Frontend — Early Hints: How Cloudflare Can Improve Website Load Times by 30%

Early Hints: How Cloudflare Can Improve Website Load Times by 30%

Today, Cloudflare is announcing support for Early Hints. Early Hints takes advantage of “server think time” to asynchronously send instructions to the browser to begin loading resources while the origin server is compiling the full response, which can improve page load time by 30%.

AAlexAlex·September 16, 2021Frontend