1.0.1 • Published 3 years ago

medium-widget v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

medium-widget

Easily integrate medium posts into react app

NPM JavaScript Style Guide

Install

npm install --save medium-widget

Usage

import React, { Component } from 'react'
import MediumWidget from 'medium-widget'

class App extends Component {
  render() {
    return (
      <>
        <MediumWidget
          renderTo='#medium-widget'
          resource='https://medium.com/@_ericelliott'
          postsPerLine='2'
          limit='4'
          picture='big'
          fields='["description", "author", "claps", "likes", "publishAt"]'
          ratio='landscape'
        />
      </>
    )
  }
}

export default App

License

MIT © anaszaman