Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joshwcomeau
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
joshwcomeau
6y ago
To be clear I am not advocating switching to React in order to add a hit counter. The article is meant for folks who already have a Gatsby/Next site.
92.
▲
by
joshwcomeau
6y ago
This article is meant for folks who already have a static React site, and want to dip their toes into doing some backend stuff. It isn’t really meant to be the simplest way to build a hit counter. That said, I challenge the assumption that
93.
▲
Build a hit counter for Gatsby with React, AWS Lambda, and FaunaDB
(joshwcomeau.com)
45 points
by
joshwcomeau
6y ago
|
48 comments
94.
▲
Show HN: An interactive tutorial teaching spring physics for animation
(joshwcomeau.com)
9 points
by
joshwcomeau
6y ago
|
0 comments
95.
▲
by
joshwcomeau
6y ago
Hi HN! Author here. Sharing a book I released today about building developer portfolio sites. A few months ago I reviewed several hundred dev portfolios on twitter, and found I was giving the same feedback over and over. I also had a lot to
96.
▲
Show HN: A tactical guide for building a dev portfolio that appeals to employers
(joshwcomeau.com)
1 points
by
joshwcomeau
6y ago
|
1 comments
97.
▲
by
joshwcomeau
6y ago
Hi HN! Author here. Sharing a book I released today about building developer portfolio sites. A few months ago I reviewed several hundred dev portfolios on twitter, and found I was giving the same feedback over and over. I also had a lot to
98.
▲
“Building an Effective Dev Portfolio”, a free guide for junior devs
(joshwcomeau.com)
3 points
by
joshwcomeau
6y ago
|
1 comments
99.
▲
by
joshwcomeau
6y ago
Awesome! Great work
100.
▲
Using Netlify Functions with Gatsby
(joshwcomeau.com)
1 points
by
joshwcomeau
6y ago
|
0 comments
101.
▲
Animated Sparkles in React
(joshwcomeau.com)
3 points
by
joshwcomeau
6y ago
|
0 comments
102.
▲
Lessons Learned Speaking at Conferences
(joshwcomeau.com)
2 points
by
joshwcomeau
6y ago
|
0 comments
103.
▲
Accessible Animations in React: The `UsePrefersReducedMotion` Hook
(joshwcomeau.com)
2 points
by
joshwcomeau
6y ago
|
0 comments
104.
▲
by
joshwcomeau
7y ago
Hey thread, author here. I don't have the energy to debunk some of these replies, but let me quickly say: 1. The reason that this is a hard problem has nothing to do with React, or Gatsby. It has to do with the strategy of precompiling
105.
▲
The Quest for the Perfect Dark Mode (Gatsby/React)
(joshwcomeau.com)
74 points
by
joshwcomeau
7y ago
|
55 comments
106.
▲
CSS Variables for React Developers
(joshwcomeau.com)
2 points
by
joshwcomeau
7y ago
|
0 comments
107.
▲
A Static Future: The magic of compile-time workflows
(joshwcomeau.com)
115 points
by
joshwcomeau
7y ago
|
33 comments
108.
▲
by
joshwcomeau
7y ago
Right, so the reasons this needs to be a hook: - As someone else said, it manages playback state. This is technically managed by a third-party library, but we expose an `isPlaying` boolean which is held in React state - It lazy-loads Howler
109.
▲
by
joshwcomeau
7y ago
Other commenters beat me to it, but yeah, it's an ergonomics thing. If you have multiple sounds, you can do: const [playBell, bellOptions] = useSound(); const [playBoom, boomOptions] = useSound(); It follows the convention of other Rea
110.
▲
Show HN: Use-sound, a React hook for sound effects on the web
(joshwcomeau.com)
131 points
by
joshwcomeau
7y ago
|
31 comments
111.
▲
Embracing Modern Image Formats: Leveraging WebP in HTML and React
(joshwcomeau.com)
1 points
by
joshwcomeau
7y ago
|
0 comments
112.
▲
by
joshwcomeau
7y ago
A lot of the questions you're rhetorically asking are answered in the RFC you're commenting on. Specifically, they had real problems with their current system, which they documented here: https://phabricator.wikimedia.o
113.
▲
Using Netlify Functions with Gatsby Cloud
(joshwcomeau.com)
2 points
by
joshwcomeau
7y ago
|
0 comments
114.
▲
Becoming a Dev without a CS Degree, According to hundreds who have done it
(joshwcomeau.com)
2 points
by
joshwcomeau
7y ago
|
0 comments
115.
▲
Generate an SEO-Friendly Sitemap for Your Gatsby Site
(joshwcomeau.com)
2 points
by
joshwcomeau
7y ago
|
0 comments
116.
▲
by
joshwcomeau
7y ago
Often, the data lives in localStorage, so it isn't really "loading". If your data needs to be fetched asynchronously, a loading state is a fine solution. Even in this case, a loading solution works just fine, but it's th
117.
▲
The Perils of Rehydration – A Realization about Gatsby and React
(joshwcomeau.com)
75 points
by
joshwcomeau
7y ago
|
20 comments
118.
▲
by
joshwcomeau
7y ago
That's a neat idea! In the case of something like a blog, though, you anticipate folks sharing the URL. It'd be kinda strange to inadvertently share persisted settings (or worse, stuff that's maybe a little personal)
119.
▲
by
joshwcomeau
7y ago
Ah, good catch! Yeah, I changed this partway through, missed that! Thanks for the heads-up.
120.
▲
Persisting React State in LocalStorage
(joshwcomeau.com)
137 points
by
joshwcomeau
7y ago
|
64 comments
More ›