Do we need import react nowadays?

When I type “import React from ‘react’;” in Visual Studio Code,it seems doesn’t work,and i find i can use react directly without importing.
Do we need import react nowadays?Or there is something I miss?
Thank you!

I found the answer.

We need import React and ReactDOM nowadays.

Visual Studio Code makes import line transparent is because:
VS make unused import lines transparent until they are used.