TS4025

error TS4025: Exported variable ‘App’ has or is using private name ‘FC’.

Broken Code ❌

1
2
3
4
5
import React from 'react';

const App: FC = (): JSX.Element => {
return <></>;
};

Fixed Code ✔️

1
2
3
4
5
import React, {FC} from 'react';

const App: FC = (): JSX.Element => {
return <></>;
};