1.2.2 • Published 6 years ago

react-micro-list v1.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago