flowr

  • Docs
  • Examples
Docs Menu
  • Getting started
  • Conditionals
    • Maybe
    • Either
    • Flip
    • Reverse
    • Order
    • One
    • Some
    • Constant
    • Just
    • Nothing
    • Pure
  • Schedulers
    • Await
    • Stream
    • Delay
    • Debounce
    • Throttle

One

import { One } from 'flowr';

One will render only the child located at the specified index.

A B C
// Will render:
C

If the at prop is not provided, nothing will be rendered.

A B C
// Will render:

Props

NameTypeDefaultDescription
atnumber-The index of the child we want to render.

See also Some

Contribute on Github! Edit this section.