1.0.6 • Published 3 years ago

insta-react v1.0.6

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

DEPRECATED Insta-react

Warning Insta-react will no longer function due to the new CORS policy Instagram has added to the endpoint the component used to get data. Please migrate to using Instagram's basic display API here: https://developers.facebook.com/docs/instagram-basic-display-api

Insta-react is a simple React component for displaying instagram account or hashtag post images.

Github Repo

NPM

Installation

Insta-react can be installed with both npm and yarn as usual.

npm install insta-react

yarn add insta-react

And then can be imported into your project.

import InstaReact from "insta-react";

Configuration

Insta-react takes the following props for configuration:

Example

import React from 'react';
import InstaReact from 'insta-react';

const App = () => {
    return(
        <div>
            An account feed, latest 6 posts, 5 columns.
            <InstaReact tag="redsquirrelstudio" quantity={6} cols={5} />
            
            A hashtag feed, with defaults
            <InstaReact tag="#programming" />
        </div>
    )
}

This component is also available for Vue.js here: https://www.npmjs.com/package/insta-vue

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago