Cole Peterson

35 Added | 1 Magazine | 2 Likes | 2 Following | @ColePeterso2bqq | Keep up with Cole Peterson on Flipboard, a place to see the stories, photos, and updates that matter to you. Flipboard creates a personalized magazine full of everything, from world news to life’s great moments. Download Flipboard for free and search for “Cole Peterson”

React's new Context API and Actions

<i>Photo:</i> Daniel Watson<p><i>Edit: 4/2/2018 - It was pointed out to me that the example in this post had a performance issue, where render was called on</i> …

Software Engineering

Pass Your Front End Tech Interview By Knowing JavaScript’s Prototype Chain

When you first started learning to program, you may have come across the term object-oriented programming. You looked up what it meant and you found …

JavaScript

Tools you need to use in your react components development

As a react developer, I believe that everyone who is working on a react project must develop all the components separately for taking advantage of …

Upgrading a create-react-app project to a SSR + code splitting setup

<b>UPDATE:</b> <i>This is part 1 of my</i> <b>CRA+SSR</b> <i>series:</i><p>Upgrading a create-react-app project to SSR + code splitting<br>• Adding state management with Redux in a CRA + …

JavaScript

next-offline

Use Workbox with Next.js and easily enable offline functionality in your application.<p>Installation<p>Usage<p>Create a next.config.js in your project<p>Then …

10 React Developer Tools You Might Have Missed

Here’s a few tools you might have missed, out of my React tooling shortlist that deal with performance, visibility and debugging. Note that some of …

JavaScript

Front End Interview Handbook

<i>Credits: Illustration by @yangheng</i><p>What is this?<p>Unlike typical software engineer job interviews, front-end job interviews have less emphasis on …

Codes of Conduct

Stress Testing React Easy State

The Power of ES6 Proxies<p>Last week I announced React Easy State: a state management library based on ES6 Proxies. The announcement mentioned …

unstated — The setState of React State Management

A new paradigm for React state management that is as new as it is old.<p>If you’ve been paying attention to Twitter over the past few weeks, you may …

Top Articles of the Week — React, React Router, Node, Web Components, Multithreading, Prototypal…

“Thinking like a computer scientist means more than being able to program a computer. It requires thinking at multiple levels of …

JavaScript

React Component IO

A curated collection of popular and useful React.js UI components, tools and libraries for building your application with an amazing UI.<p><i>" The secret</i> …

How I Cut My React Javascript Bundle Size In Half With Three Lines of Code

If you are anything like me, you love React. There is a group of people out there who believe that the library is too large for what it does (I …

Yarn

Purgecss

What is purgecss?<p>When you are building a website, chances are that you are using a css framework like Bootstrap, Materializecss, Foundation, etc... …

Introducing React Scope

Visualize Your React Components as You Interact With Your App<p>As React applications grow in complexity, it can become increasingly difficult to keep …

JavaScript

Learn React.js from Top 45 Tutorials for the past year (v.2018)

Between Jan~Dec 2017, we’ve compared nearly 18,000 React.js articles to pick the Top 45 that would help advance your web development career in …

Software Engineering

📦 Parcel

🚀 Blazing fast bundle times<p>Parcel uses worker processes to enable multicore compilation, and has a filesystem cache for fast rebuilds even after a …

FuseBox 3.0 — faster than ever

FuseBox 3.0 has been finally released, it’s 20% faster and lighter. Did you know that it takes 50–100ms to re-bundle a heavy project?<p>Let’s break it …

JavaScript

preact-render-spy

preact-render-spy is a package designed to cover many of the use cases for testing preact components. The API is roughly modeled after enzyme, but we …

JavaScript

The constructor is dead, long live the constructor!

Say goodbye to the medieval class constructor in your React components.<p>While Stateless Function Components (SFCs) are a handy tool in your arsenal, …

JavaScript

Lerna · A tool for managing JavaScript projects with multiple packages.

Splitting up large codebases into separate independently versioned packages is extremely useful for code sharing. However, making changes across many …

JavaScript

Learn how to write a Higher Order Component for React in 3 easy steps.

How to write a HOC (in 3 easy steps).<p>A lot of times when writing software we end up solving similar problems in similar ways. Sometimes we even …

JavaScript

Writing Clean and Concise React Components by Making Full Use of ES6/7 Features and the Container-Component Pattern

The Story So Far<p>If, like myself, you’ve ever created a website using the “standard” tools of plain old HTML or templates, preprocessed CSS, and …

JavaScript

A React And Preact Progressive Web App Performance Case Study: Treebo

<b>Authors:</b> <i>Treebo:</i> <i>Lakshya Ranganath</i><i>, Chrome:</i> <i>Addy Osmani</i><p>Treebo is India’s top rated budget hotel chain, operating in a segment of the travel industry …

Web Development

UnCSS

UnCSS is a tool that removes unused CSS from your stylesheets. It works across multiple files and supports Javascript-injected CSS.<p>How?<p>The process by …

JavaScript

Simple React Patterns

Dealing With Side-Effects In React<p>I've been writing React applications for a few years now, and I've noticed that some patterns tend to repeat …

JavaScript

How to become a more productive React Developer

Developing complex React applications is… well, complex. You need to keep many things in your head at the same time, and it’s super easy to get …

JavaScript

react-tracking

• React specific tracking library, usable as a higher-order component (as @decorator or directly)<br>• Compartmentalize tracking concerns to individual …

JavaScript

React Progressive Web Apps — Part 2

Introduction<p>In part 1, we learned how to cache static files for our app shell using <b>Service Worker,</b> so that our React app is available offline …

JavaScript

Using React and Next.JS to build a PWA - The Beginner's Guide

Development<p>Using React and Next.JS to build a PWA – The Beginner’s Guide<p>Learn how to build a Progressive Web App with React and Next.JS using modern …

Adding ESlint to Your Project

In this article I will help you to add ESlint to an existing or a new project with a couple of easy steps using the ESlint CLI tool.<p>Here we have a …

JavaScript