Finds import statements that import from module 'react'

import javascript

from ImportDeclaration id
where id.getImportedPath().getValue() = "react"
select id