react-list-section
v1.0.2
Published
A react library that provides a section list
Downloads
11
Maintainers
Readme
react-list-section
Made with create-react-library
Install
npm install --save react-list-section
Usage
import React from 'react'
import 'react-list-sectionlist/dist/index.css'
import React from "react";
import SectionList from "react-list-section";
const Home = () => {
return (
<>
<SectionList
sections={[{ data: [{ id: 5 }], title: "abcd" }]}
renderSectionHeader={(a) => <div>{a.title}</div>}
renderItem={(el) => <div>{el.id}</div>}
/>
</>
);
};
export default Home;
License
MIT © yunusyavuz16