read-more-less

1.1.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (19)

    Package Sidebar

    Install

    npm i read-more-less

    Weekly Downloads

    0

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    241 kB

    Total Files

    7

    Last publish

    Collaborators

    • dhruvildave