直近1週間の人気フィード
はてなブックマーク数を元に新着優先で並べ替え
Designing Beautiful Shadows in CSS
38
Josh Comeau's blogWhen I look around the web, most of the shadows I see are fuzzy grey boxes. It doesn't have to be this way, though! CSS gives us the tools to create rich, lush, lifelike shadows. In this tutorial, I'll show you how.
2日前
Why React Re-Renders
32
Josh Comeau's blog
In React, we don't update the DOM directly, we tell React what we want the DOM to look like, and React tackles the rest. But how exactly does it do this? In this tutorial, we'll unpack exactly when and why React re-renders, and how we can use this information to optimize the performance of our React apps.
2日前
Demystifying styled-components
30
Josh Comeau's blogFor so many React devs, styled-components seems kinda magical. It isn't at all clear how it uses traditional CSS features under-the-hood, and that lack of clarity can cause real problems when things go awry. In this post, we'll learn exactly how styled-components works by building our own mini-version.
2日前
A Modern CSS Reset
19
Josh Comeau's blogI have a set of baseline CSS styles that come with me from project to project. In the past, I'd use a typical CSS reset, but times have changed, and I believe I have a better set of global styles!
2日前
ブラウザで動作する地理空間データ処理ライブラリとして DuckDB-wasm を使い、 SQL を TypeScript で管理する仕組みを作る
143
newmo 技術ブログnewmo では、地図データや地理情報を扱う場面が多くあります。 たとえば、タクシーやライドシェアでは、営業区域のような営業していいエリアといった地理的な定義があります。 また、乗り入れ禁止区域のようなタクシーが乗り入れてはいけないエリアといった定義も必要になります。 これらの地理に関する定義は GeoJSON のような地理情報を扱うデータ形式で管理されることが多いです。 しかし、GeoJSONなどの定義をテキストとして手書きするのは困難です。 そのため、地図上に区域を作図するエディタやその定義した区域が正しいかをチェックするような管理ツールが必要です。 管理ツールは、ウェブアプリケーションと…
4日前
The Surprising Truth About Pixels and Accessibility
14
Josh Comeau's blog“Should I use pixels or rems?”. In this comprehensive blog post, we'll answer this question once and for all. You'll learn about the accessibility implications, and how to determine the best unit to use in any scenario.
2日前
The styled-components Happy Path
9
Josh Comeau's blogstyled-components is a wonderfully powerful styling library for React, and over the years I've learned a lot about how to use it effectively. This article shares my personal “best practices”.
2日前
アプリ文言のパースで学ぶ 文字列Literal型パズル入門
20
Saji (@sajikix) on Speaker DeckTSKaigiKansai 2024 : 2024/11/16- https://kansai.tskaigi.org/talks/sajikixPlayground- Try it in PlaygroundX- https://twitter.com/sajikix
3日前
How I Built My Blog
4
Josh Comeau's blogAn in-depth look at the technical stack behind this very blog! We'll see how I use Next's API routes to implement my hit and like counters, how I use MDX to add interaction and customization, and how I organize my codebase, among others.
2日前
Hands-Free Coding
3
Josh Comeau's blog
Earlier this year, I lost the ability to use a keyboard and mouse for extended periods. Fortunately, this wasn't as catastrophic as it sounds! This article chronicles my experience using adaptive tools like dictation and eye-tracking as my primary mechanisms for writing code.
2日前