jsx
jsx copied to clipboard
The JSX specification is a XML-like syntax extension to ECMAScript.
Hi guys, it's really not an issue but since JSX is more often used without React, we can achieve some really good things. I'm trying to make alpinejs and jsx...
Using CSS Selector Syntax to create components: - `` as shortcut of `` - `` as shortcut of `` - `` as shortcut of `` - `` as shortcut of...
# RFC: Standardizing `$:` namespace escaping ## Intro JSX has proven to be very useful when it's about writing clients for XML-based APIs. It allows constructing XML requests while keeping...
Support shorthand syntax for passing variables as props, where the variable name is same as the prop name; similar to the shorthand properties in ES6 object literals. For example :...
Change the name and the link so that everything is aligned.
It's perhaps the time as the world is changing rapidly, and sadly, there are many other places that need to be supported 🌏
For the following code: ```jsx import React from 'react' const x = ``` [TypeScript](https://www.typescriptlang.org/play?ts=4.7.0-dev.20220215&filetype=ts#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wFgAoNCAOwGd4APOAXjgB4A3YAEyQgD42AegA6AVwAMEgOwA2Hn35A): accept this syntax TypeScript: reject this syntax after https://github.com/microsoft/TypeScript/pull/48609 [Babel](https://babeljs.io/repl#?browsers=chrome%2025&build=&builtIns=false&corejs=3.6&spec=true&loose=true&code_lz=JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wCg0IA7AZ3gA84BeOAHgDdgATJCAPhYD0AHQCuABjEB2AGxcevIA&debug=false&forceAllTransforms=true&shippedProposals=true&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Creact&prettier=false&targets=&version=7.17.6&externalPlugins=&assumptions=%7B%7D): syntax error [swc](https://play.swc.rs/?version=1.2.144&code=H4sIAAAAAAAAA8vMLcgvKlEISk1MLlFIK8rPVVAvArHVuZLz84pLFCoUbBVsyjJTUvPtbPRjSg0MzM3AHAAUiMCPOAAAAA%3D%3D&config=H4sIAAAAAAAAA0WOPQ6DMAxG7%2BKZoe3AwA06VD2DmxoUlD%2FZpiqKcncSSsVmPX%2FvszPMYmDIkJCFuE2yBsUvDEDGoxi2SaGrsYqUF%2Bogsf2g0j08XzMZ%2FeHSgSJPpE2U2%2BXaV8nFKATDiE6q522w49pOmOgTk8i5wjC5f7LULh%2FfSwMZdE20d%2FZQzo7Ds%2FI4gvsPG6ls9s%2FOAAAA): syntax error esbuild:...
Fixes #120. This was quite hard to specify: - I initially tried to add an early error to `RelationalExpression` saying something like "It is a SyntaxError if the left side...
# Actual behaviour We need to use third party libs like `clsx` to complish this very common behaviour ```ts ``` # Wanted behaviour Use JSX to accomplish this common task...