Skip to content

use named export rather than default export #7586

Closed
@xiaoxiangmoe

Description

@xiaoxiangmoe

In TypeScript Documentation it write:

import * as React from "react";

but in cra, it use:

import React from 'react';
import ReactDOM from 'react-dom';

Should we use named export rather than default export?

Named export seems to be a more accurate way of expressing the export of react.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions