From 7fc6b795a964554908dc1ee4c7b792859a02603d Mon Sep 17 00:00:00 2001 From: akilan sengottaiyan Date: Tue, 1 Nov 2022 16:28:42 +0530 Subject: [PATCH] Update README.md https://github.com/AlexGilleran/jsx-control-statements/issues/117 --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3978304..b9de0b3 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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.