accelerator-core
Version:
[](https://travis-ci.org/furkleindustries/accelerator-core)
22 lines (16 loc) • 443 B
Markdown
A component which takes a single element from the `children` array at random.
```javascript
<OneOf>
{/* children */}
{[
'one',
'two',
'three',
'four',
]}
</OneOf>
```
* `children (MaybeReadonlyArray<ReactNodeWithoutNullOrUndefined>)`: The list of content from which the random N elements will be drawn. An exception will be thrown if the length of children is less than `n`.