When using jsx with the config
"jsx": "react-jsx",
"jsxImportSource": "jsx",
then
const asdf = (
<div id="parent">
<div id="child1"></div>
<div id="child2"></div>
</div>
);
becomes
import { jsx as _jsx, jsxs as _jsxs } from "jsx/jsx-runtime";
const asdf = _jsxs("div", {
id: "parent",
children: [
_jsx("div", { id: "child1" }),
_jsx("div", { id: "child2" })
] });
what is the difference between jsx() and jsxs()?
i wanna use jsx in a few places but dont want an entire framework.