sambernard / react-preload

Component to preload images before showing content
MIT License
148 stars 48 forks source link

Preload is undefined #4

Closed jb-san closed 8 years ago

jb-san commented 8 years ago

Hi, I was trying to use this in a project, but I use es6 so the var Preload = require("react-preload"); becomes import Preload from "react-preload"

but Preload is undefined and I can not render the component, any ideas ?

sambernard commented 8 years ago

Hey- can you try using import {Preload} from "react-preload" and see if that works?

blzzz commented 8 years ago

Doesn't seam to work in ES6. Any news about that issue?

sambernard commented 8 years ago

I should have a fix in today.

sambernard commented 8 years ago

@blzzz Can you try installing the latest version from npm?

blzzz commented 8 years ago

Works perfectly, thanks a lot.