TS2595

error TS2595: ‘React‘ can only be imported by using a default import.

Broken Code ❌

1
import { React } from 'react';

Fixed Code ✔️

A default import cannot be put in curly braces:

1
import React from 'react';