1.1.1 • Published 5 years ago
read-more-less v1.1.1
read-more-less
Install
npm install --save read-more-less
Usage
import React, { Component } from 'react'
import ReadMoreLess from 'read-more-less'
import 'read-more-less/dist/index.css'
const initialText =
<div>
'Any Text Here'
</div>
;
const moreText =
<div>
'Any Text Here with more Text'
</div>
;
class ReadMoreLess extends Component {
render() {
return
<ReadMoreLess
initialText={initialText}
moreText={moreText}
/>
}
}
License
MIT © dhruvildave22