/react-word-limit

React Word Limit

Primary LanguageJavaScriptMIT LicenseMIT

react-word-limit

Installation

npm install react-word-limit --save

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import WordLimit from 'react-word-limit';
ReactDOM.render(<WordLimit limit={10}>here is long text to be printed</WordLimit>, document.getElementById('page'));