react-micro-list

A Simple React List tool

Usage no npm install needed!

<script type="module">
  import reactMicroList from 'https://cdn.skypack.dev/react-micro-list';
</script>

README

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