When using JSX, it's usually required to have
import
from React in the file scope. Otherwise, the code may not compile properly.