Closed
Description
jsx-runtime
landed. but there have different transform results when key before or after props spread
<div key="key "{...props} />;
<div {...props} key="key"/>;
// will convert to
import { createElement } from "react"
import { jsx } from "react/jsx-runtime"
jsx("div", props, "key")
createElement("div", { ...props, key: "key" }) // only key after props spread do the fallback
to avoid the fallback to using createElement
,
need a rule to limit the key before spread.