jit

jsx-inner-text

Returns the innerText of a React JSX object.

Showing:

Popularity

Downloads/wk

6

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Deprecated!
This package has been renamed to react-innertext.

Readme

jsx-inner-text

Returns the innerText of a React JSX object, similar to the innerText property of DOM elements.

Example

CommonJS

const innerText = require('jsx-inner-text');
innerText(<div>Hello <strong>world</strong>!</div>) === 'Hello world!'

ES6

import innerText from 'jsx-inner-text';
innerText(<div>Hello <strong>world</strong>!</div>) === 'Hello world!'

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100