Back to Explore

vercel/styled-jsx

GitHub
3 watchersOpen source

Last release:

styled-jsx is a CSS-in-JSX solution for React that provides full, scoped, component-friendly CSS support, rendered on the server or the client. It helps isolate styles to components (using generated class names), supports global styles, and includes dynamic styles for values coming from props, state, or class toggling, plus options like source maps and vendor prefixing.

Project status

  • Maintenance status: Not clearly actively maintained today, based on tagged updates history (last documented version is v5.1.7 on 2025-04-30, with the prior versions in 2024). An upstream GitHub push occurred on 2026-06-09, but there is no corresponding tagged update shown in the provided history.
  • Update cadence: The apparent cadence is infrequent and clustered, with a longer gap between 2025-04-30 and today (2026-09-10), suggesting a quiet or maintenance-style trajectory rather than steady releases.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v5.1.7

    v5.1.7 includes a bug fix intended to make styled-jsx work more reliably with React 18 hydration when using the useInsertionEffect hook. The fix adds logic to ensure registry insertion falls back to useLayoutEffect under certain conditions.

  • v5.1.6

    v5.1.6 is a small packaging-only release. The only documented change is moving TypeScript from runtime dependencies to devDependencies in package.json.

  • v5.1.5

    v5.1.5 is described as a small bug fix for declaration file typing context. The diff shows the project added a TypeScript type-checking step and modified several .d.ts files to adjust how the React JSX types are imported.

  • v5.1.4

    Release v5.1.4 contains a small type definition update described as using a scoped JSX namespace. The code diff only changes TypeScript declaration files, with no runtime implementation changes.

  • v5.1.3

    v5.1.3 primarily updates styled-jsx to declare compatibility with React 19 by widening the peerDependencies range. The code diff also includes a small dependency bump (loader-utils 1.4.1 to 1.4.2) and an update to the GitHub issue template.

  • v5.1.2

    v5.1.2 is a TypeScript typing-only patch release. The release notes describe a bug fix related to including global typings, and the code diff shows declaration-file reference wiring changes to ensure the package’s global types are included.

  • v5.1.1

    v5.1.1 contains a small change to the TypeScript typings for the styled-jsx macro module, described as a typo fix. The actual diff also includes dependency updates (loader-utils and its transitive emojis-list) that are not mentioned in the release notes.

  • v5.1.0

    v5.1.0 adds client-only handling for React Server Components (RSC) by importing the `client-only` package at module load time. The release notes only mention the RSC behavior change, but the actual diff also includes multiple dependency and lockfile updates.

    BreakingFeatures
  • v5.0.7

    v5.0.7 is a small bug fix release that adds a React context display name for better developer tooling output. No behavioral or API changes are evident from the code diff.

  • v5.0.6

    Release v5.0.6 contains a targeted change to how the Babel macro is loaded, shifting to dynamic loading of babel-plugin-macros. The code diff also shows structural changes in the macro entry point module export shape and some build dependency/version updates.