Search
Collective #618
13.8.2020
Elder.js * Serverless: I'm a big kid now * The Endless Doomscroller * Building a Design System Library
The post Collective #618 appeared first on Codrops
Making Sense of react-spring
4.8.2020
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 started out, then dive into some interesting use cases. While react-spring isn’t the only animation library for React, it’s one of the more...
style9: build-time CSS-in-JS
29.7.2020
In April of last year, Facebook revealed its big new redesign. An ambitious project, it was a rebuild of a large site with a massive amount of users. To accomplish this, they used several technologies they have created and open-sourced, such as React, GraphQL, Relay, and a new CSS-in-JS library...
A Bit on Web Component Libraries
29.7.2020
A run of Web Components news crossed my desk recently so I thought I’d group it up here.
To my mind, one of the best use cases for Web Components is pattern libraries. Instead of doing, say, <ul class="nav nav-tabs"> like you would do in Bootstrap or <div class="tabs"> like...
Exclusive: Liquid Network Gets Its First General-Purpose Javascript Library
9.7.2020
A new Javascript library for Liquid could allow external developers to build a complete ecosystem around the heavily upgraded Bitcoin sidechain
How to Make a List Component with Emotion
8.7.2020
I’ve been doing a bit of refactoring this week at Sentry and I noticed that we didn’t have a generic List component that we could use across projects and features. So, I started one, but here’s the rub: we style things at Sentry using Emotion, which I have only passing experience with and...
Building Serverless GraphQL API in Node with Express and Netlify
6.7.2020
I’ve always wanted to build an API, but was scared away by just how complicated things looked. I’d read a lot of tutorials that start with “first, install this library and this library and this library” without explaining why that was important. I’m kind of a Luddite when it comes to these...
Some Performance Links
3.7.2020
Just had a couple of good performance links burning a hole in my pocket, so blogging them like a good little blogger.
Web Performance Recipes With Puppeteer
Puppeteer is an Node library for spinning up a copy of Chrome “headlessly” (i.e. no UI) and controlling it. People use it...
Rough Notation
22.6.2020
This is a neat little library. It uses SVG to insert hand-drawn looking annotations to elements (probably text), like underlines and box highlights (there are 6 design options, all configurable). Super clever.
Here’s a little demo:
CodePen Embed Fallback
Aside from it just being cool,...
Core Web Vitals
29.5.2020
Core Web Vitals is what Google is calling a a new collection of three web performance metrics:
LCP: Largest Contentful Paint
FID: First Input Delay
CLS: Cumulative Layout Shift
These are all measurable. They aren’t in Lighthouse (e.g. the Audits tab in Chrome DevTools) just yet, but sounds...
Get Programmatic Control of your Builds with Netlify Build Plugins
27.5.2020
Today at Jamstack_Conf, Netlify announced Build Plugins. What it does is allow you to have particular hooks for events within your build, like when the build starts or ends. What’s nice about them is that they’re just a plain ‘ol JavaScript object, so you can insert some logic...
How I Put the Scroll Percentage in the Browser Title Bar
12.5.2020
Some nice trickery from Knut Melvær.
Ultimately the trick boils down to figuring out how far you’ve scrolled on the page and changing the title to show it, like:
document.title = `${percent}% ${post.title}`
Knut’s trick assumes React and installing an additional library. I’m sure...
Turning a Fixed-Size Object into a Responsive Element
11.5.2020
I was in a situation recently where I wanted to show an iPhone on a website. I wanted users to be able to interact with an application demo on this “mock” phone, so it had to be rendered in CSS, not an image. I found a great library called marvelapp/devices.css. The library implemented the device...
React Integration Testing: Greater Coverage, Fewer Tests
1.5.2020
Integration tests are a natural fit for interactive websites, like ones you might build with React. They validate how a user interacts with your app without the overhead of end-to-end testing. 
This article follows an exercise that starts with a simple website, validates behavior with unit...
Arweave 2.0 Gets File Storage Project One Step Closer to Its ‘Library of Alexandria’ Dreams
29.4.2020
Arweave operates on the same idea as other blockchain-based file storage services such as Filecoin or Storj, but with far larger ambitions backed by new technical developments unveiled Wednesday as Arweave 2.0
Alpine.js: The JavaScript Framework That’s Used Like jQuery, Written Like Vue, and Inspired by TailwindCSS
29.4.2020
We have big JavaScript frameworks that tons of people already use and like, including React, Vue, Angular, and Svelte. Do we need another JavaScript library? Let’s take a look at Alpine.js and you can decide for yourself. Alpine.js is for developers who aren’t looking to build a single page...
Cointext Cofounder Unveils BFP Encrypt – Send Encrypted Data to Bitcoin Cash Addresses
3.4.2020
Vin Armani, the cofounder of Cointext, has announced the launch of a Javascript library that allows people to send encrypted data to addresses on the Bitcoin Cash (BCH) network. A BCH private key can decrypt the data, and when Armani released the Javascript package, the developer stressed that...
The Many Facts Pointing to Wei Dai Being Satoshi
1.4.2020
Satoshi Nakamoto has been an enigma for well over a decade and there’s been a number of suspects and self-styled Bitcoin inventors. One particular suspect is the computer engineer Wei Dai, the creator of the b-money system and the Crypto++ cryptographic library. Since the Bitcoin network...
Cryptocurrency Accounting Firm Launches Library of Legal and Tax Advice
26.3.2020
Crypto accounting firm Lukka launches the ‘Lukka Library’ — a subscription-based repo of expert advice on crypto taxation and law
React Suspense in Practice
19.3.2020
This post is about understanding how Suspense works, what it does, and seeing how it can integrate into a real web app. We'll look at how to integrate routing and data loading with Suspense in React. For routing, I'll be using vanilla JavaScript, and I'll be using my own micro-graphql-react GraphQL...