UNPKG

@render-props/paragraphs

Version:

A function as child component which provides an interface for creating paragraphs with line breaks from raw text with `\n` new lines. The default render child is: ```js const defaultParagraph = props => <p key={props.key} children={props.text}/> ```

5 lines (4 loc) 131 B
import _toBreaks from './toBreaks' export {_toBreaks as toBreaks} import _default from './Paragraphs' export {_default as default}