react-word-limit

A simple word limit component

Usage no npm install needed!

<script type="module">
  import reactWordLimit from 'https://cdn.skypack.dev/react-word-limit';
</script>

README

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'));