Home/Frontend
Topic

Frontend

1,512 articles on Frontend.

11,739 articles
Frontend — Unit Testing In React Native Applications — Smashing Magazine

Unit Testing In React Native Applications — Smashing Magazine

Unit testing has become an integral part of the software development process. It is the level of testing at which the components of the software are tested. In this article, Fortune Ikechi will show you the core principles of testing, explore various libraries for testing an application, and see how to test units (or components) of a React Native application. By working with a React Native applica

FIFortune Ikechi·September 29, 2020Frontend
Frontend — The Flavors of Object-Oriented Programming (in JavaScript)

The Flavors of Object-Oriented Programming (in JavaScript)

In my research, I've found there are four approaches to Object-Oriented Programming in JavaScript. Which methods should I use? Which one is "the best" way? Here I'll present my findings along with information that may help you decide which is right for you.

ZLZell LiewZell Liew·September 28, 2020Frontend
Frontend — A CSS Grid Framework For Shopify Collection Pages — Smashing Magazine

A CSS Grid Framework For Shopify Collection Pages — Smashing Magazine

All pages of a Shopify online store can adopt CSS Grid, but one obvious touchpoint of any e-commerce site that can benefit from a robust and clean grid layout is the collection page. In this article, Liam Griffin will be looking at how to set up a grid layout for products on your collection pages, and how to use Shopify’s section settings to create customizable options in the online store editor.

LGLiam GriffinLiam Griffin·September 22, 2020Frontend
Frontend — A Friendly Introduction to Spring Physics

A Friendly Introduction to Spring Physics

Of all the little tips and techniques I've picked up over the years about animation, spring physics remains one of the most powerful and flexible. In this tutorial, we'll learn how to harness their power to build fluid, organic transitions.

JWJosh W. Comeau·September 21, 2020Frontend
Frontend — Comparing Styling Methods In Next.js — Smashing Magazine

Comparing Styling Methods In Next.js — Smashing Magazine

Among others, [Next.js](https://nextjs.org) has dubbed itself: *The React Framework for Static Websites*. But just like every other framework whose goal is to help you build what matters by abstracting common, redundant tasks, you’re often required to learn something new and opinionated. With Next.js, one of the things you need to know is how to integrate different CSS methods with its API, and th

AAAdebiyi AdedotunAdebiyi Adedotun·September 17, 2020Frontend
Frontend — What is the Value of Browser Diversity?

What is the Value of Browser Diversity?

In 2018, Rachel Nabors made the point that browser diversity is similar to biological ecosystem diversity. There are literal advantages to more diversity.

CCChris Coyier·September 15, 2020Frontend
Frontend — Interaction Media Features and Their Potential (for Incorrect Assumptions)

Interaction Media Features and Their Potential (for Incorrect Assumptions)

The Media Queries Level 4 Interaction Media Features — pointer, hover, any-pointer and any-hover — are meant to allow sites to implement different styles and functionality (either CSS-specific interactivity like :hover, or JavaScript behaviors, when queried using window.matchMedia), depending on the particular characteristics of a user’s input device.

PHPatrick H. LaukePatrick H. Lauke·September 14, 2020Frontend
Frontend — Animating React Components With GreenSock — Smashing Magazine

Animating React Components With GreenSock — Smashing Magazine

GreenSock Animation Platform (GSAP) is a set JavaScript functions that let you tween a value/attribute/CSS property over time and insert these tweens into a timeline for more complex animations. In this article, Blessing explains how GSAP plays well with the React library by integrating its functions into a React component in building an example landing page with a variety of animations.

BKBlessing KrofeghaBlessing Krofegha·September 14, 2020Frontend
Frontend — Migrating cdnjs to serverless with Workers KV

Migrating cdnjs to serverless with Workers KV

Cloudflare powers cdnjs, an open-source project that delivers popular JavaScript libraries to over 11% of websites. Today, we are excited to announce its migration to a serverless infrastructure using Cloudflare Workers and its distributed key-value store Workers KV!

TTylerTyler·September 10, 2020Frontend
Frontend — Tophatting in React Native - Shopify

Tophatting in React Native - Shopify

To provide a more convenient and painless experience, we built a tool enabling React Native developers to quickly load their peer’s work within seconds.

SEShopify Engineering·September 9, 2020Frontend
Frontend — How To Build A Blog With Next And MDX — Smashing Magazine

How To Build A Blog With Next And MDX — Smashing Magazine

In this guide, Ibrahima Ndaw will be looking at Next.js, a popular React framework that offers a great developer experience and ships with all of the features you need for production. We will also build a blog, step by step, using Next.js and MDX. Finally, we’ll cover why you would opt for Next.js instead of “vanilla” React and alternatives such as Gatsby.

INIbrahima NdawIbrahima Ndaw·September 9, 2020Frontend
Frontend — All the Ways to Make a Web Component

All the Ways to Make a Web Component

This is a neat page that compares a ton of different libraries with web components. One of the things I learned after posting "A Bit on Web Components

CCChris Coyier·September 7, 2020Frontend
Frontend — How To Automate API Testing With Postman — Smashing Magazine

How To Automate API Testing With Postman — Smashing Magazine

Postman allows you to manually test your APIs in both its desktop and web-based applications. However, it also has the ability for you to automate these tests by writing JavaScript assertions on your API endpoints. In this article, Kelvin Omereshone will learn how to write automated tests on web APIs with Postman. In order to follow along to this tutorial, you’ll need at least a fair amount of fam

KOKelvin OmereshoneKelvin Omereshone·September 7, 2020Frontend
Frontend — Building A Component Library With React And Emotion — Smashing Magazine

Building A Component Library With React And Emotion — Smashing Magazine

A component library helps to keep a design consistent across multiple projects. It ensures consistency because any changes made will propagate across the projects that make use of it. In this tutorial, Ademola Adegbuyi will show you how to build a component library, using Emotion in React to resolve inconsistencies. At the end of this piece, you should be able to create a component library that fi

AAAdemola AdegbuyiAdemola Adegbuyi·September 4, 2020Frontend
Frontend — 5 Ways to Improve Your React Native Styling Workflow - Shopify

5 Ways to Improve Your React Native Styling Workflow - Shopify

In April, we announced Shop, our digital shopping assistant that brings together the best features of Arrive and Shop Pay. The Shop app started from our React Native codebase for our previous package tracking app Arrive, with every screen receiving a complete visual overhaul to fit the new branding. While our product designers worked on introducing a whole new design system that would decide the l

SEShopify Engineering·September 2, 2020Frontend
Frontend — Everything Developers Need To Know About Figma — Smashing Magazine

Everything Developers Need To Know About Figma — Smashing Magazine

Figma is a design tool that is rapidly gaining popularity and becoming more common in companies around the world. Unlike most design software, Figma is free and browser-based so developers can easily access the full design files making the developer handoff process significantly smoother. With article, Jurn van Wissen teaches developers who have nothing but a basic understanding of design tools ev

JVJurn Van WissenJurn Van Wissen·September 2, 2020Frontend
Frontend — Building React Apps With Storybook — Smashing Magazine

Building React Apps With Storybook — Smashing Magazine

In this article, Abdulazeez Adeshina will show you what storybook is about and how to use it to build and test React components by building a simple application. He’ll start with a basic example that shows how to work with storybook, then will go ahead to create a storybook for a Table component which will hold students’ data. You should have basic knowledge of React and the use of NPM before proc

AAAbdulazeez AdeshinaAbdulazeez Adeshina·September 1, 2020Frontend
Frontend — Using Mobx As A State Manager In React Native Applications — Smashing Magazine

Using Mobx As A State Manager In React Native Applications — Smashing Magazine

MobX is a battle-tested library that makes state management simple and scalable by transparently applying functional reactive programming. It treats your application like a spreadsheet, and it’s one of the many state management tools available to React developers. In this tutorial, Fortune Ikechi is going to show you how to use MobX to manage state in React Native applications by building a React

FIFortune Ikechi·August 26, 2020Frontend
Frontend — Plyr: CSS Styleable Video Player

Plyr: CSS Styleable Video Player

I just stumbled across Plyr from Sam Potts, a JavaScript library for styled video players. What struck me about it is that you can list YouTube videos as the

CCChris Coyier·August 19, 2020Frontend
Frontend — Mastering Props And PropTypes In React — Smashing Magazine

Mastering Props And PropTypes In React — Smashing Magazine

Props and PropTypes are an important mechanism for passing information between React components, and we’re going to look into them in great detail here. This tutorial will introduce you to the details about props, passing and accessing props, and passing information to any component using props. However, it’s always a good practice to validate the data we are getting through props by using PropTyp

ADAdeneye David AbiodunAdeneye David Abiodun·August 17, 2020Frontend
Frontend — CSS-Tricks Chronicle XXXIX

CSS-Tricks Chronicle XXXIX

Hey gang! I've been fortunate enough to be a guest in a variety of different here, so I thought it was time for another Chronicle post. You know, those

CCChris Coyier·August 14, 2020Frontend
Frontend — How To Configure Application Color Schemes With CSS Custom Properties — Smashing Magazine

How To Configure Application Color Schemes With CSS Custom Properties — Smashing Magazine

Splitting colors into three levels (palette, functional, and component) can help you be more adaptive to changes and new requirements while working on a project. In this article, Artur Basak introduces a modern approach on how to set up CSS Custom Properties that respond to the application colors. The idea of dividing colors into three levels can be quite useful: a palette (or scheme), functional

ABArtur BasakArtur Basak·August 11, 2020Frontend
Frontend — Better Error Handling In NodeJS With Error Classes — Smashing Magazine

Better Error Handling In NodeJS With Error Classes — Smashing Magazine

You can get by in NodeJS without properly handling errors but due to the asynchronous nature of NodeJS, improper handling or errors can cause you pain soon enough. This article is for JavaScript and NodeJS developers who want to improve error-handling in their applications. Kelvin Omereshone explains the `error` class pattern and how to use it for a better, more efficient way of handling errors ac

KOKelvin OmereshoneKelvin Omereshone·August 10, 2020Frontend
Frontend — HTML for Subheadings and Headings

HTML for Subheadings and Headings

Let's say you have a double heading situation going on. A little one on top of a big one. It comes up, I dunno, a billion times a day, I'd say. What HTML do

CCChris Coyier·August 6, 2020Frontend
Frontend — TypeScript, Minus TypeScript

TypeScript, Minus TypeScript

Unless you’ve been hiding under a rock the last several years (and let’s face it, hiding under a rock sometimes feels like the right thing to do), you’ve

CWCaleb WilliamsCaleb Williams·August 6, 2020Frontend
Frontend — A Practical Guide To Product Tours In React Apps — Smashing Magazine

A Practical Guide To Product Tours In React Apps — Smashing Magazine

Showcasing new product features to users or familiarizing them with some UI functionality in a web app can get tedious, especially when you want users to see a lot of things. In the following guide, BLessing Krofegha will show you how to proactively use product tours to onboard users into a new and complex UX, and how to familiarize them with UI functionality without boring them, using a typical R

BKBlessing KrofeghaBlessing Krofegha·August 6, 2020Frontend
Frontend — Warp SVG Online

Warp SVG Online

The warping is certainly the cool part here. Some fancy math literally transforms the path data to do the warping. But the UX detail work here is just as

CCChris Coyier·August 5, 2020Frontend
Frontend — Pcicrawler: A Python-based command-line interface tool to debug PCI issues at scale

Pcicrawler: A Python-based command-line interface tool to debug PCI issues at scale

What it is: A Python-based command-line interface tool that can be used to display, filter, and export information about Peripheral Component Interconnect (PCI) or PCI Express (PCIe) buses and devices, as well as PCI topology. We built pcicrawler to diagnose and debug PCIe issues at scale and help with automation. What it does: Pcicrawler provides […]

MEMeta Engineering·August 5, 2020Frontend
Frontend — Making Sense of react-spring

Making Sense of react-spring

Animation is one of the trickier things to get right with React. In this post, I’ll try to provide the introduction to react-spring I wish I had when I first

ARAdam RackisAdam Rackis·August 4, 2020Frontend
Frontend — Setting Up Redux For Use In A Real-World Application — Smashing Magazine

Setting Up Redux For Use In A Real-World Application — Smashing Magazine

Redux is a robust state-management library for single-page JavaScript apps. It is described on the official documentation as a predictable state container for Javascript applications and it’s fairly simple to learn the concepts and implement Redux in a simple app. Going from a simple counter app to a real-world app, however, can be quite the jump.

JNJerry NaviJerry Navi·August 3, 2020Frontend
Frontend — Making Facebook.com accessible to as many people as possible

Making Facebook.com accessible to as many people as possible

We recently shared the work we did to rebuild our tech stack to support the redesigned Facebook.com. When that project began, we saw an opportunity to integrate greater accessibility into the site and build it into the foundation in a way we couldn’t have done without this rebuild. The previous site had been built upon […]

MEMeta Engineering·July 30, 2020Frontend
Frontend — Understanding Client-Side GraphQl With Apollo-Client In React Apps — Smashing Magazine

Understanding Client-Side GraphQl With Apollo-Client In React Apps — Smashing Magazine

Ever tried interacting with a GraphQL server in a client-side application and felt like giving up even before getting anywhere? Ever declined an invitation to join a code base that requires working with GraphQL API because you had no idea? Ever felt like the only front-end engineer who hasn’t learned how to consume GraphQL APIs? If you answered yes to any of these questions, then this tutorial is

BKBlessing KrofeghaBlessing Krofegha·July 29, 2020Frontend
Frontend — CSS Vocabulary

CSS Vocabulary

This is a neat interactive page by Ville V. Vanninen to reference the names of things in the CSS syntax. I feel like the easy ones to remember are "selector,"

CCChris Coyier·July 27, 2020Frontend
Frontend — Create A Responsive Dashboard With Angular Material And ng2-Charts — Smashing Magazine

Create A Responsive Dashboard With Angular Material And ng2-Charts — Smashing Magazine

With Angular Material and ng2-charts, you can take advantage of schematics to cut down the effort and time you may spend building a dashboard. Schematics in Angular 9 are code generators that can create components and patterns in projects using predetermined templates and layouts. In this article, Zara Cooper explains how to take advantage of schematics in Angular Material and ng2-charts to substa

ZCZara CooperZara Cooper·July 27, 2020Frontend