🌇 React utils to imgix™
Usage
Generate a stringified url with params
const url = // url = http://your.site/img.png?fit=clamp&h=50
const url = // url = http://your.site/img.png?h=50
Lqip techinique
import Lqip generate from 'reimigx' const url = const App = <Lqip => src <img = ="Bear" /> </Lqip>
import Lqip generate from 'reimigx' const url = const App = <Lqip => src loaded <div> Image below is using loaded ? 'full version' : 'lqip version' <img = ="Bear" /> </div> </Lqip>
Install
Node Module
yarn add reimgix
# or
npm i reimgix
UMD library
exposed as Reimgix
Contribute
You can help improving this project by sending PRs and helping with issues.