Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
akilansengottaiyan authored Nov 1, 2022
1 parent cef2b39 commit 7fc6b79
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 7fc6b79

Please sign in to comment.