Skip to content

Commit

Permalink
Merge pull request #118 from akilansengottaiyan/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
AlexGilleran authored Nov 10, 2022
2 parents cef2b39 + 7fc6b79 commit b5a7f7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ If statements transform to the _ternary operator_:

### Choose Tag

This is an alternative syntax for more complex conditional statements. The syntax itself is XMLish and conforms by and
This is an alternative syntax for more complex conditional statements. Its a equivalent of `switch` statement for jsx. The syntax itself is XMLish and conforms by and
large to JSTL or XSLT (the attribute is called `condition` instead of `test`):

```javascript
Expand Down Expand Up @@ -462,10 +462,14 @@ Cons:
- Slightly longer build times
- Requires an extra plugin to work with ESLint

## For macros
If you are looking to use macros with it, take a look at [jsx-control-statements-macros](https://github.com/akilansengottaiyan/jsx-control-statements) which is basically the extension of jsx-control-statements with macros support.

## What about Typescript?

[There's a version for that by @KonstantinSimeonov!](https://github.com/KonstantinSimeonov/tsx-control-statements)


## Major Versions

- 4.x.x is a pure Babel plugin supporting Babel >= 7.
Expand Down

0 comments on commit b5a7f7a

Please sign in to comment.