From f8ec0490c0e19c0e98340b4cb4bdcbe7e5d0ab48 Mon Sep 17 00:00:00 2001 From: Colin Caine Date: Tue, 17 Aug 2021 20:58:54 +0100 Subject: [PATCH] Document listOfElements signature better --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index b7164e0..6ce3cbf 100644 --- a/README.md +++ b/README.md @@ -46,4 +46,9 @@ If a tag string, it will parse out the tag name and change the `id` and you'd like to set on the element. - **children** `Array|String` *(optional)* - An array of `h()` children or a string. This will create child elements or a text node, respectively. + +#### `h(listOfElements)` + +Returns a `React.Fragment`. + - **listOfElements** `Array` - An array of React elements that will be wrapped with `React.Fragment`.