Skip to content

Instantly share code, notes, and snippets.

@romanonthego
Last active February 10, 2016 06:08
Show Gist options
  • Save romanonthego/c02cf85d323b47d1fab0 to your computer and use it in GitHub Desktop.
Save romanonthego/c02cf85d323b47d1fab0 to your computer and use it in GitHub Desktop.
const background = require('./assets/background.png')
// ...
{
//...
render: function() {
return (
<div>
<img src={background} />
<img src={background + '-/resize/600x/-/blur/10/-/mirror/-/format/jpg/-/quality/best/-/progressive/yes/'}>
</div>
);
}
}
// Somewhere in your DOM:
// => <div>
// => <img src="https://ucarecdn.com/85b5644f-e692-4855-9db0-8c5a83096e25/" />
// => <img src="https://ucarecdn.com/85b5644f-e692-4855-9db0-8c5a83096e25/-/resize/600x/-/blur/10/-/mirror/-/format/jpg/-/quality/best/-/progressive/yes/" />
// => </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment