From 188f8595072a9d966503dd9577a966752c5aa250 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Sun, 26 Sep 2021 23:21:36 +0200 Subject: [PATCH] fix(readme): fixed headers for usage --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5925676d..f03fc548 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ const Example = () => { **_Note: For a fully auto-generated API, see [the github pages website](https://romac.github.io/react-if)_** -### ; +### <If /> | Property | Type | Default | | ----------- | --------------- | ------- | @@ -203,19 +203,19 @@ The parameters of this render function are: If the `keepAlive` prop evaluates to `false`, each rerender of the `` component will automatically ignore the previous Promise if it was still pending. -### ; +### <Then /> Can contain any number of elements inside, which it renders as-is. It can also contain a function. Should not be used outside of an `` block. It will only be displayed, if parent `If` block's condition is true. -### ; +### <Else /> Can contain any number of elements inside, which it renders as-is. It can also contain a function. Should not be used outside of an `` block. It will only be displayed, if parent `If` block's condition is false. -### ; +### <Switch /> A container for `` and `` blocks. It will render **the first matching** `Case`, or **the first encountered** `Default` (, or null). -### ; +### <Case /> | Property | Type | | ----------- | ------- | @@ -223,15 +223,15 @@ A container for `` and `` blocks. It will rend If the `Case` is the first one to have its `condition` evaluates to `true` inside the parent `` it will be the only rendered. -### ; +### <Default /> If no `Case` have its `condition` evaluates to `true` inside the parent ``, the first `Default` will be the only one rendered. -### ; +### <When /> A shorthand for `...`. The same rules apply to the child elements as with using the `Then` block. -### ; +### <Unless /> A shorthand for `...`. The same rules apply to the child elements as with using the `Else` block.