Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

insta-react

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insta-react

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

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

[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:

PropTypeDefaultFunction
tagStringN/A, RequiredThe username or hashtag that you would like posts to be pulled from hashtags should be prefixed with '#'.
quantityInteger4The number of posts you would like to be shown.
colsInteger4The number of posts to be shown in a row before wrapping.
linksBooleanfalseWhen true, clicking on a post image will link to it on Instagram
descriptionsBooleanfalseWhen true, post captions will be shown for each post.

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

FAQs

Package last updated on 17 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc