-
Notifications
You must be signed in to change notification settings - Fork 113
Conversation
thisandagain
commented
May 1, 2015
<img src="../../img/toucan.svg" /> | ||
</div> | ||
var cards = []; | ||
var project = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var project;
no need for null here?
@@ -64,6 +60,8 @@ | |||
"lodash.defaults": "3.1.1", | |||
"react": "0.13.1", | |||
"react-hammerjs": "0.2.2", | |||
"react-imageloader": "1.2.0", | |||
"react-loadermixin": "1.0.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ImageLoader
is used in discover.jsx
. LoaderMixin
is a dependency of the image loader.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a dep. bug in image-loader. Filed hzdg/react-imageloader#13
</ImageLoader> | ||
</div> | ||
|
||
<div className="meta"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth turning this into a <Metadata>
component. Right now we're using title and author only, but we probably want to extend that later on with additional things like date posted, likes, etc.
|
||
#### Loading Images | ||
Any time you are loading images over the network, we recommend that you use the `ImageLoader` react component. This gives you access to important events like loading and error states as well as a hook for providing a loading animation. Full documentation can be found here: https://github.com/hzdg/react-imageloader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nit: let's use <ImageLoader>
to make it clear that it's not a library or the like, but an actual component