Full list of posts per tags
bundler
4 min read#javascript #react #parcel #bundler
A comparison between Create-React-App & Parcel when building a React single-page-app
css
4 min read#css #webdev
When writing CSS selectors, they sometimes don’t seem to be following the order of the code. Indeed they don’t: they also follow the specificity of each selectors. But what is the specificity and how does it work?
1 min read#css #tip
A tiny list of websites to learn CSS while playing interactive games
2 min read#html #webdev #fundamentals #css
Is there a difference in CSS between `:before` and `::before`? Which one is valid? What about similar syntaxes like `:hover` and `::first-child`?
4 min read#webdev #css #javascript
In my previous articles about Light/dark mode, I made a few mistakes, or forgot to mention some elements
2 min read#css #webdev
Classical cross-fades in CSS using opacity don’t properly animate the opacity of elements, making them less opaque then needed. This article will show you how to achieve a proper cross-fade in CSS.
5 min read#webdev #css #react #javascript #deep-dive
After building a few different ways of creating light/dark modes for your websites, either in plain CSS, or with a bit of vanilla CSS, we need to tackle the topic of React websites. While most of the core will be the same as previously seen, React requires a few custom bindings for its particular life-cycles & data flow
2 min read#webdev #css #javascript
When manually handling the theming of your website, you may run into a flicker at the page load from white to black. This is because your JavaScript takes some time to boot and to apply the dark mode. Let’s see how we can fix that
4 min read#webdev #css #javascript
In all my past articles, I showed either how to create a light/dark mode following your users system without JavaScript, or how to create a light/dark swatch for your website using JavaScript but without system mode. It is time to see how to reconcile those 2 approaches
2 min read#webdev #css
Handling light/dark mode on your websites don’t have to be complex. A few lines of CSS to declare a few CSS variables can be all you need!
2 min read#webdev #css #javascript
In this article, we’ll see how we can implement the logic to switch back & forth between light/dark mode
2 min read#webdev #css
Let’s see how we can build a dark-mode compatible website, following your user’s system preferences, with 1 line of CSS
deep-dive
5 min read#webdev #css #react #javascript #deep-dive
After building a few different ways of creating light/dark modes for your websites, either in plain CSS, or with a bit of vanilla CSS, we need to tackle the topic of React websites. While most of the core will be the same as previously seen, React requires a few custom bindings for its particular life-cycles & data flow
dom
2 min read#react #dom
You sometimes needs to have access to the underlying HTML elements in React. This short article is here to help you navigate this problem
fundamentals
2 min read#html #webdev #fundamentals #css
Is there a difference in CSS between `:before` and `::before`? Which one is valid? What about similar syntaxes like `:hover` and `::first-child`?
html
2 min read#html #webdev #fundamentals #css
Is there a difference in CSS between `:before` and `::before`? Which one is valid? What about similar syntaxes like `:hover` and `::first-child`?
javascript
2 min read#javascript #websocket
Tools like Sentry or Datadog provide amazing monitoring tools for a lot of requests, but not for WebSockets. Why is that and can we find a way to still monitor WebSockets?
5 min read#javascript #unicode
UTF is tricky: the length of a string can mean a lot of different things based on whether you want the number of code points, code units, and graphemes. What are the differences, and how can we navigate through those using JavaScript?
4 min read#typescript #javascript #news
TypeScript 5.0 is out and introduced a new compilation option: `moduleResolution: bundler`, let’s see how we can use it
4 min read#webdev #css #javascript
In my previous articles about Light/dark mode, I made a few mistakes, or forgot to mention some elements
4 min read#javascript #react #parcel #bundler
A comparison between Create-React-App & Parcel when building a React single-page-app
5 min read#webdev #css #react #javascript #deep-dive
After building a few different ways of creating light/dark modes for your websites, either in plain CSS, or with a bit of vanilla CSS, we need to tackle the topic of React websites. While most of the core will be the same as previously seen, React requires a few custom bindings for its particular life-cycles & data flow
2 min read#webdev #css #javascript
When manually handling the theming of your website, you may run into a flicker at the page load from white to black. This is because your JavaScript takes some time to boot and to apply the dark mode. Let’s see how we can fix that
4 min read#webdev #css #javascript
In all my past articles, I showed either how to create a light/dark mode following your users system without JavaScript, or how to create a light/dark swatch for your website using JavaScript but without system mode. It is time to see how to reconcile those 2 approaches
2 min read#webdev #css #javascript
In this article, we’ll see how we can implement the logic to switch back & forth between light/dark mode
news
4 min read#react #news
@blocz/react-responsive v5.1 was just released. Let’s go through all the different features and changes added by this new minor version
3 min read#react #news
@blocz/react-responsive v5.0 was just released. Let’s go through all the different features and changes added by this new major version
3 min read#react #news
@blocz/react-responsive v4 was just released. Let’s go through all the different features and changes added by this new major version
4 min read#typescript #javascript #news
TypeScript 5.0 is out and introduced a new compilation option: `moduleResolution: bundler`, let’s see how we can use it
2 min read#typescript #news
TypeScript 4.9 is out and introduced a new operator: `satisfies`, let’s see how we can use it
3 min read#react #news
@blocz/react-responsive v3 was just released. Let’s go through all the different features and changes added by this new major version
npm
2 min read#npm #versioning
The semver’s spec mentions a group called “buildMetadata”. If you’ve never heard of this before, you’re not alone
parcel
4 min read#javascript #react #parcel #bundler
A comparison between Create-React-App & Parcel when building a React single-page-app
react
7 min read#react
When working with components, a use-case comes up often: computing an operation on component initial mount, and having it be fully stable across the entire lifetime of the component
4 min read#react #news
@blocz/react-responsive v5.1 was just released. Let’s go through all the different features and changes added by this new minor version
3 min read#react #news
@blocz/react-responsive v5.0 was just released. Let’s go through all the different features and changes added by this new major version
3 min read#react #news
@blocz/react-responsive v4 was just released. Let’s go through all the different features and changes added by this new major version
4 min read#javascript #react #parcel #bundler
A comparison between Create-React-App & Parcel when building a React single-page-app
5 min read#webdev #css #react #javascript #deep-dive
After building a few different ways of creating light/dark modes for your websites, either in plain CSS, or with a bit of vanilla CSS, we need to tackle the topic of React websites. While most of the core will be the same as previously seen, React requires a few custom bindings for its particular life-cycles & data flow
2 min read#react #webdev
This short article focuses on when to use raw CSS vs React bindings when working with responsive designs
3 min read#react #news
@blocz/react-responsive v3 was just released. Let’s go through all the different features and changes added by this new major version
2 min read#react #dom
You sometimes needs to have access to the underlying HTML elements in React. This short article is here to help you navigate this problem
1 min read#react
Migrating class components to hooks can be difficult. There is no official guideline to help you migrate to them. This article will list the major advices you may want to follow during those migrations
6 min read#react
This article is an applied example of how I migrated the library `react-only` from classes to hooks
tip
1 min read#css #tip
A tiny list of websites to learn CSS while playing interactive games
5 min read#yarn #tip
Yarn comes with a lock file `yarn.lock` that isn’t made for human to edit it. But sometimes you need to do a specific edit in it (like dropping a specific package). This article highlights a few different ways to do so
2 min read#yarn #tip
Yarn comes with a lock file `yarn.lock` that isn’t made for human to read it. But when using the tool, you sometimes need to go through it to be able to understand it (specially when reviewing PRs)
typescript
4 min read#typescript #javascript #news
TypeScript 5.0 is out and introduced a new compilation option: `moduleResolution: bundler`, let’s see how we can use it
2 min read#typescript #news
TypeScript 4.9 is out and introduced a new operator: `satisfies`, let’s see how we can use it
unicode
5 min read#javascript #unicode
UTF is tricky: the length of a string can mean a lot of different things based on whether you want the number of code points, code units, and graphemes. What are the differences, and how can we navigate through those using JavaScript?
versioning
2 min read#npm #versioning
The semver’s spec mentions a group called “buildMetadata”. If you’ve never heard of this before, you’re not alone
webdev
4 min read#css #webdev
When writing CSS selectors, they sometimes don’t seem to be following the order of the code. Indeed they don’t: they also follow the specificity of each selectors. But what is the specificity and how does it work?
2 min read#html #webdev #fundamentals #css
Is there a difference in CSS between `:before` and `::before`? Which one is valid? What about similar syntaxes like `:hover` and `::first-child`?
4 min read#webdev #css #javascript
In my previous articles about Light/dark mode, I made a few mistakes, or forgot to mention some elements
2 min read#css #webdev
Classical cross-fades in CSS using opacity don’t properly animate the opacity of elements, making them less opaque then needed. This article will show you how to achieve a proper cross-fade in CSS.
5 min read#webdev #css #react #javascript #deep-dive
After building a few different ways of creating light/dark modes for your websites, either in plain CSS, or with a bit of vanilla CSS, we need to tackle the topic of React websites. While most of the core will be the same as previously seen, React requires a few custom bindings for its particular life-cycles & data flow
2 min read#webdev #css #javascript
When manually handling the theming of your website, you may run into a flicker at the page load from white to black. This is because your JavaScript takes some time to boot and to apply the dark mode. Let’s see how we can fix that
4 min read#webdev #css #javascript
In all my past articles, I showed either how to create a light/dark mode following your users system without JavaScript, or how to create a light/dark swatch for your website using JavaScript but without system mode. It is time to see how to reconcile those 2 approaches
2 min read#webdev #css
Handling light/dark mode on your websites don’t have to be complex. A few lines of CSS to declare a few CSS variables can be all you need!
2 min read#webdev #css #javascript
In this article, we’ll see how we can implement the logic to switch back & forth between light/dark mode
2 min read#webdev #css
Let’s see how we can build a dark-mode compatible website, following your user’s system preferences, with 1 line of CSS
2 min read#react #webdev
This short article focuses on when to use raw CSS vs React bindings when working with responsive designs
websocket
2 min read#javascript #websocket
Tools like Sentry or Datadog provide amazing monitoring tools for a lot of requests, but not for WebSockets. Why is that and can we find a way to still monitor WebSockets?
yarn
5 min read#yarn #tip
Yarn comes with a lock file `yarn.lock` that isn’t made for human to edit it. But sometimes you need to do a specific edit in it (like dropping a specific package). This article highlights a few different ways to do so
2 min read#yarn #tip
Yarn comes with a lock file `yarn.lock` that isn’t made for human to read it. But when using the tool, you sometimes need to go through it to be able to understand it (specially when reviewing PRs)