Jsx pragma does not prevent "unnecessary import" warning


(Andraž) #1

JavaScript file, when using jsx pragma it still triggers unnecessary import warning:

Pragma in first line switches the need for the classic
import React from react
to the variable defined in pragma:
import {jsx} from @emotion/core.