preact-indexof
v1.0.1
Published
A tiny wrapper component that renders a child at the specified index.
Downloads
2
Maintainers
Readme
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