1.1.2 • Published 6 years ago

react-mason v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

react-mason

Masonry usage

react-mason is a masonry-grid component.

Installation

npm install react-mason

Usage

Pass children to the Masonry component

import React, { Component } from 'react';
import Masonry from 'react-mason';
import Photo from './Photo';

class PhotoAlbum extends Component {
  render() {
    return (
      <Masonry>
        {
          this.props.photos.map(photo => <Photo {...photo} />)
        }
      </Masonry>
    )
  }
}
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago