rez-utils
v2.1.12
Published
Made with create-react-library
Downloads
3
Readme
rez-utils
Made with create-react-library
Install
npm install --save rez-utils
Usage
RezList
import React, { Component } from 'react'
import {RezList} from 'rez-utils'
import 'rez-utils/dist/index.css'
class Example extends Component {
const columns = [
{
name: 'Title',
selector: row => row.title,
},
{
name: 'Year',
selector: row => row.year,
},
];
const data = [
{
id: 1,
title: 'Beetlejuice',
year: '1988',
},
{
id: 2,
title: 'Ghostbusters',
year: '1984',
},
]
render() {
return <RezList columns={columns} data={data}/>
}
}
RezForm
import React, { Component } from 'react'
import {RezForm} from 'rez-utils'
import 'rez-utils/dist/index.css'
class Example extends Component {
render() {
return <RezForm data={data}/>
}
}