In TypeScript Documentation it write:
import * as React from "react";
but in cra, it use:
https://github.com/facebook/create-react-app/blob/fbb3b03ba59d5e67aa91ab2e706a988cb521eb58/packages/react-scripts/template-typescript/src/index.tsx#L1-L2
Should we use named export rather than default export?
Named export seems to be a more accurate way of expressing the export of react.
In TypeScript Documentation it write:
but in cra, it use:
https://github.com/facebook/create-react-app/blob/fbb3b03ba59d5e67aa91ab2e706a988cb521eb58/packages/react-scripts/template-typescript/src/index.tsx#L1-L2
Should we use named export rather than default export?
Named export seems to be a more accurate way of expressing the export of react.