Skip to content

Export Text from domhandler #777

Closed
@harryzcy

Description

@harryzcy

Expected Behavior

import { Text } from 'html-react-parser' should work

Actual Behavior

It fails because Text is only exported in type definition, but not in index.js file.

Steps to Reproduce

import { Text } from 'html-react-parser'

Reproducible Demo

Environment

  • Version: v3.0.4
  • Platform: macOS
  • Browser: Chrome

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions