jsx2svelte is a Compiler that compiles React JSX components to svelte components.
npm i jsx2svelte --save
import { compile } from 'jsx2svelte'
const jsxCode = `
import React from 'react';
export default ({ prop }) => {
useEffect(() => { doSomething(); }, []);
return <div>testing props</div>;
};
`
const svelteCode = compile(jsxCode)