Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

Articles→Tag→React

reactΣ=6

See all tags
Article  ·  Monday, 17 October 2022
Thoughts about sort-package-json v2 pure ESM

Thoughts about sort-package-json v2 pure ESM

The npm package sort-package-jsonopens in a new tab migrated to ES Modules in their v2 release and indirectly broke their named exports which our packages have been consuming. It was a major semver bump, but breaking changes slipped from their changelog and readme radar, so I wanted to explain what actually happened there.

Read article
all posted tagged remixall posted tagged reactall posted tagged meta
Article  ·  Monday, 01 August 2022
Sync state with URL params in Remix

Sync state with URL params in Remix

This weekend I was tinkering with string-strip-html GUI; I wanted to sync the state with URL params so that users could bookmark the page and visit later and automatically get those settings restored.

Here’s an MVP based on a forked Remix.js starter template on StackBlitz.

Read article
all posted tagged reactall posted tagged remixall posted tagged ts
Article  ·  Tuesday, 19 July 2022
Observation regarding RTL getby and findby interchangeability

Observation regarding RTL getby and findby interchangeability

At first glance, it seems that React Testing Library (abbreviated RTL) await waitFor + get can be replaced with find everywhere, but it’s not so.

Read article
all posted tagged reactall posted tagged testingall posted tagged jsall posted tagged ts
Article  ·  Monday, 18 July 2022
Styling the react-codemirror instances

Styling the react-codemirror instances

When building the string-strip-html GUI, I wanted: line wrapping, full-screen flexbox layout, with scrollbars on Codemirror box only. That’s a common layout seen on code-oriented sites like Codepen or Stackblitz. I created a minimal proof-of-concept sandbox to prove it works.

Read article
all posted tagged metaall posted tagged reactall posted tagged ts
Article  ·  Sunday, 12 June 2022
Syntax highlighting in Remix

Syntax highlighting in Remix

Syntax highlighting is done using either highlight.jsopens in a new tab or prism.jsopens in a new tab. Once you’ve picked one, you’ll have to set it up for code blocks: 1. within MDX and 2. outside MDX. That’s how it works on all kinds of frameworks, not just Remix, although I’ll post examples for Remix.

This setup is mostly a trivial task; however, there are a few niggles worth mentioning.

Read article
all posted tagged jsall posted tagged tsall posted tagged reactall posted tagged remixall posted tagged metaall posted tagged mdx
Article  ·  Monday, 16 May 2022
Our dark mode setup

Our dark mode setup

I used to believe that three-theme UI toggle (auto-dark-light) was superior to the two-theme, dark-light. But I don’t think that way anymore.

Read article
all posted tagged remixall posted tagged reactall posted tagged metaall posted tagged css

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab