Skip to content

Why is ReactDOM used? #4028

Closed
Closed
@corradin

Description

@corradin

After creating an application the App test file contains a unit test and it uses ReactDOM to test that the component is not crashing. Wouldn't it be better to use the React test renderer or Enyme with the mount command? From https://reactjs.org/docs/react-dom.html I understand that ReactDOM should be used for functionality rather than testing.
Please let me know what you think, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions