I'm using the react-jsx-parser npm package and I have this code:
Builder.tsx
import JsxParser from "react-jsx-parser";
export default function Builder() {
const a = `
<>
{data.map((el, i) => (
<div key={i}>{el}</div>
))}
</>
`;
return <JsxParser bindings={{ data: [1, 2] }} jsx={a} />;
}
But this doesn't work and I'm getting the error down below, I've done some research and can't find any solution.