1.1.1 • Published 5 years ago

read-more-less v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

read-more-less

NPM JavaScript Style Guide

Install

npm install --save read-more-less

DEMO

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

read-more-less