Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 784 Bytes

File metadata and controls

36 lines (26 loc) · 784 Bytes

react-medium-zoom

A React library for zooming images like Medium

NPM JavaScript Style Guide

Install

npm install --save react-medium-zoom

Usage

import React, { Component } from 'react'

import ReactMediumImg from 'react-medium-zoom'

class App extends Component {
  render () {
    return (
      <ReactMediumImg
        src={'image'}
        onOpen={() => console.log('Image Open')}
        onClosed={() => console.log('Image closed')}
        {...allImageProps}
      />
    )
  }
}

License

MIT © shahen94