preact-indexof

1.0.1 • Public • Published

npm version license

preact-indexOf

A tiny wrapper component that renders a child at the specified index.

import IndexOf from "preact-indexof";

const Example = () => (
    <IndexOf index={0}>
        <div>Panel 1</div>
        <div>Panel 2</div>
        <div>Panel 3</div>  	          	        
    </IndexOf>
);

Installation

npm install preact-indexOf

Contributing

See CONTRIBUTING.md

Package Sidebar

Install

npm i preact-indexof

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

127 kB

Total Files

11

Last publish

Collaborators

  • eric-harms-code