react-micro-list

1.2.2 • Public • Published

React Micro List Build Status https://npmjs.org/jxshco/react-micro-list https://npmjs.org/jxshco/react-micro-list

A Tiny Package to render your results.

Install

Add React Micro List to your Project

npm install react-micro-list --save
 
or
 
yarn add react-micro-list

Usage

Import the List Component into your project

import List from 'react-micro-list'

Add the list Component with data and your render item

<List
    data={['Josh', 'Bill', 'Sarah']}
    render={(item) => <p>{item}</p>}
/>

Add a No Results Component if you would like

<List
    data={['Josh', 'Bill', 'Sarah']}
    render={(item) => <p>{item}</p>}
    noResults={<p>You Have No Results</p>}
/>

Add a Loading Component if you would need to render something while waiting

<List
    data={['Josh', 'Bill', 'Sarah']}
    render={(item) => <p>{item}</p>}
    loading={true|false}
    loadingComponent={<p>Loading...</p>}
/>

Style

js-standard-style

License

MIT

Dependents (0)

Package Sidebar

Install

npm i react-micro-list

Weekly Downloads

7

Version

1.2.2

License

MIT

Unpacked Size

206 kB

Total Files

11

Last publish

Collaborators

  • jxsh