-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Facing this issue only when upgrading the react version from 17 to 18.
Current behavior:
css="You have tried to stringify object returned from css function. It isn't supposed to be used directly (e.g. as value of the className prop), but rather handed to emotion so it can handle it (e.g. as value of css prop)."
import { jsx /* css */ } from "@emotion/react";export const railnavMenuWrapper = css<some css & rules> ``<div css={railnavMenuWrapper}></div>
Expected behavior:
Should work smoothly without throwing any error or breaking the css.
Environment information:
reactversion: 18.3.1@emotion/reactversion: 11.8.node-version: 22.14.0