Usually I write import {x} from "./foo”
Riccardo Scalco

No, Chrome — plus Safari and other browsers — require you to specify the path exactly, they won’t infer “.js”.

Similarly, you can’t import “foo” — you’d always have to import “./foo.js”.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.