8 Matching Annotations
- Nov 2020
-
github.com github.com
-
The success of JSX has proved that the second curly is unnecessary. Moreover, a lot of people — particularly those who have been exposed to React — have a visceral negative reaction to double curlies, many of them assuming that it brings with it all the limitations of crusty old languages like Mustache and Handlebars, where you can't use arbitrary JavaScript in expressions.
-
- Oct 2020
-
github.com github.com
-
const { getByRole } = render(<input bind_value={text}>)
Directly compare to: https://hyp.is/T2NGMA5ZEeu2k6dW8hBd9g/github.com/kenoxa/svelte-htm
-
svelte-htm - Hyperscript Tagged Markup for svelte; a jsx-like syntax using Tagged Templates
-
For event listeners we support the standard jsx naming convention onEventname (this is converted to on:eventname in svelte) as well.
Tags
- good example
- equivalent/analogous/alternative ways to do something between 2 libraries/languages/etc.
- comparison with:
- definition
- javascript: tagged template literals
- React
- Svelte
- naming convention
- conversion (transform)
- JSX
- hyperscript
- standard
- svelte-jsx
- -like
- differences
- React: events
- Svelte: events
- description
Annotators
URL
-
-
github.com github.com
- Sep 2020
-
github.com github.com
-
Proposes a syntax similar to JSX.
My question would instead be, why not just use JSX for Svelte templates?
-
-
github.com github.com
-
Write svelte components in jsx.
-
-
github.com github.com
-
This package exposes an hyperscript compatible function: h(tag, properties, ...children) which returns a svelte component.
-