A React library for zooming images like Medium Sample in 2020

A React library for zooming images like Medium Sample in 2020


tutorials -

react-medium-zoom

A React library for zooming images like Medium.

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}
      />
    )
  }
}

GitHub

Trending On Tutorial Stuff

Our Sponsors

Top Applications in Tutorial Stuff

Top Experts In Tutorial Stuff