Open in app

Sign In

Write

Sign In

Malcolm
Malcolm

2.1K Followers

Home

Lists

About

Published in

Frontend Digest

·Feb 25

How to import third-party scripts into NextJS

Three different ways to do it — NextJS is a fantastic framework for developing ReactJS applications and websites. Recently at work, I needed to import a third-party script into our application and found the documentation lacking. In this article, we will explain the different ways you can import scripts into a NextJS application. 1. Add it as a <script> tag in _document.tsx The most basic way…

JavaScript

2 min read

How to import third-party scripts into NextJS
How to import third-party scripts into NextJS
JavaScript

2 min read


Published in

Frontend Digest

·Jan 8, 2022

Employers: Ditch The Take-Home Project

If you want to hire in this competitive market — Take-home projects are a lazy, stupid hiring process. If your recruiting strategy relies on them, then you are making hiring more difficult than it needs to be. Like the DVD and home telephone, take-home exams are obsolete. You could get away with requiring prospective employees to finish a take-home project…

JavaScript

3 min read

Employers: Ditch The Take-Home Project
Employers: Ditch The Take-Home Project
JavaScript

3 min read


Published in

Frontend Digest

·Aug 29, 2021

Using Absolute Imports in NextJS

An easy way to organize your next project — Setting up absolute imports is a great way to better organize your NextJS projects. Forget long, hard to follow relative imports that break during refactoring, absolute imports make it easy to manage your application as it grows. The Problem With relative imports, we have imports that look like this inside of our…

JavaScript

2 min read

Using Absolute Imports in NextJS
Using Absolute Imports in NextJS
JavaScript

2 min read


Published in

Frontend Digest

·Aug 22, 2021

How I Build ReactJS Components

Make your components easier to read with these tips — When I write React code, I have one simple goal. I want to write code that’s easy to read, easy to understand, and easy to update. I want future colleagues, to be able to take my work and expand upon it. I don’t care if I add a few more…

Reactjs

2 min read

How I Build ReactJS Components
How I Build ReactJS Components
Reactjs

2 min read


Published in

Frontend Digest

·Aug 22, 2021

The Benefits of using NextJS in 2021

Why your team should use NextJS instead of rolling your own ReactJS framework — One of the reasons why we as developers love ReactJS is that it’s an unopinionated small library built for creating interactive user experiences. Try comparing ReactJS to a library like Angular — React has no “one way” to handle routing, to handle data fetching, to handle global state, to handle…

Nextjs

4 min read

The Benefits of using NextJS in 2021
The Benefits of using NextJS in 2021
Nextjs

4 min read


Published in

Frontend Digest

·Aug 16, 2021

You do need React for building websites

Learn a framework if you want to advance your career — If you want to get a job as a Frontend Developer, you need to learn React (or another framework). It’s popular to push back against the popularity of frameworks like React, Angular, and Vue. …

JavaScript

2 min read

You do need React for building websites
You do need React for building websites
JavaScript

2 min read


Published in

Frontend Digest

·Updated Aug 15, 2021

Write Better Tests with React Testing Library

Three takeaways from three years working with RTL. — I have been working with React-Testing-Library daily for the last three years. Over this time, my approach to testing with RTL has evolved, and I’ve learned how to write better and more resilient tests. …

JavaScript

4 min read

Write Better Tests with React Testing Library
Write Better Tests with React Testing Library
JavaScript

4 min read


Published in

Frontend Digest

·Apr 11, 2021

How To A Create NavLink Component in NextJS

Make your own active link component with useRouter and TypeScript — One of the first components I create while making a new NextJS application is a NavLink component. This component wraps Next's next/link component and adds an activeClassName if that link is active. …

Nextjs

3 min read

How To Create A NavLink Component in NextJS
How To Create A NavLink Component in NextJS
Nextjs

3 min read


Published in

Frontend Digest

·Mar 14, 2021

Why It’s Important To Master The Nullish Coalescing Operator

Use ?? instead of || — Over the last six years, I have been lucky enough to help companies build complex and demanding web applications using ReactJS. What I love most about my work is that I’m constantly learning new things, making mistakes, and learning from them. Recently, I almost introduced a bug into our application…

JavaScript

2 min read

Why It’s Important To Master The Nullish Coalescing Operator
Why It’s Important To Master The Nullish Coalescing Operator
JavaScript

2 min read


Published in

Frontend Digest

·Jan 5, 2021

Dependent and Conditional Data Fetching With useSWR

Advanced data fetching patterns made easy with useSWR — When it comes to building complex React applications, useSWR is a blessing. It takes away all the complexity of storing and caching your API responses. Most of my applications no longer need global state management. Today I would like to discuss two advanced (and related) use cases for data fetching…

JavaScript

3 min read

Dependent and Conditional Data Fetching With useSWR
Dependent and Conditional Data Fetching With useSWR
JavaScript

3 min read

Malcolm

Malcolm

2.1K Followers

JavaScript Consultant

Following
  • Sinem Günel

    Sinem Günel

  • Kristen Walters

    Kristen Walters

  • Tyler Hawkins

    Tyler Hawkins

  • Jennifer Fu

    Jennifer Fu

  • Ryan Fan

    Ryan Fan

See all (204)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams