0.1.14 • Published 6 years ago
react-policy-reader v0.1.14
react-policy-reader
A simple lightweight React policy reader
Installation
npm install react-policy-reader --save
Usage
import React from 'react';
import PolicyReader from 'react-policy-reader';
export default class TCPolicyPage extends React.PureComponent {
sections = [
{
heading: "Section A",
content: [
"My first paragraph for secion A",
"My Second paragraph for section A",
]
},
{
heading: "Section B",
content: [
"My first paragraph for secion B",
"My Second paragraph for section B",
]
}
]
render() {
return <PolicyReader sections={sections} />
}
}