Sapper: Support JSX

Created on 7 Jan 2018  ·  4Comments  ·  Source: sveltejs/sapper

Would it be possible to provide a mechanism for writing templates in JSX rather than svelte? I guess it would be a welcome addition and could potentially address the barrier to entry for people coming from a react background.

Most helpful comment

I will add that svelte is stupidly easy to learn.

All 4 comments

I'm not @Rich-Harris but I'm guessing this is a no. Sapper uses svelte because svelte provides all the hot reloading, code splitting, compilation tools for free. To support jsx there'd need to be a wrapper that provided the same compiler interface as svelte to jsx components.

I'm think sapper is (purposely) coupled very heavily to svelte.

Yeah, Sapper is, by its very nature, Next.js but for Svelte. If you want Next.js but for Svelte but for React, just use Next.js 😝

I will add that svelte is stupidly easy to learn.

Closing for the reasons outlined above — this would defeat the object of Sapper

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rich-Harris picture Rich-Harris  ·  3Comments

milosdjakovic picture milosdjakovic  ·  3Comments

nikku picture nikku  ·  4Comments

BMorearty picture BMorearty  ·  3Comments

SARFEX picture SARFEX  ·  3Comments