Socket
Book a DemoInstallSign in
Socket

@luchoster/react-ig

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luchoster/react-ig

React component to get Instagram posts without using the api

Source
npmnpm
Version
0.0.12
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

React-Ig

github

This React Component will allow you to scrape Instagram posts and dislay a grid of images with an overlay (on hover) of number of likes and comments, each image links (opens in a new tab) to it's IG post url.

Based, inspired and ported from Gatsby Source Instagram.

Table of Contents

[TOC]

Install

npm

npm install @luchoster/react-ig --save

yarn

yarn add @luchoster/react-ig

How to use

import InstagramPosts from '@luchoster/react-ig'

<InstagramPosts username="vegas" />

when using the username prop, it will only return the most recent 12 posts from that account

or you can get scrape a hashtag and define a number of maxPosts (recommended) to display

<InstagramPosts hashtag="vegas" />

Available Props

  username
  hashtag
  altHash
  maxPosts

tags: React Instagram instafeed

FAQs

Package last updated on 04 Jun 2020

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