react-orphanage

Justifies text to prevent orphaned words

Usage no npm install needed!

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

README

react-orphanage

A component that justifies text to avoid orphans.

Install

npm install --save react-orphanage

Import

import Orphanage from 'react-orphanage'

Use

<Orphanage>
  <p>Lorem ipsum dolor site amet</p>
</Orphanage>