🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@raddo/easy-instagram-feed

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@raddo/easy-instagram-feed

An easy-to-use and simple Instagram package that allow you to fetch media content without API and access token.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

An easy-to-use and simple Instagram package that allow you to fetch media content without API and access token.

Install

$ npm install @raddo/easy-instagram-feed
 or
$ yarn add @raddo/easy-instagram-feed

Usage

import React from "react";

import getInstagramFeed, {
  InstagramFeedType,
} from "@raddo/easy-instagram-feed";

type InstaType = InstagramFeedType | null;

const Index: React.FC = () => {
  const [instaFeed, setInstaFeed] = React.useState<InstaType>(null);

  React.useEffect(() => {
    getInstagramFeed("natgeotravel").then(feed => setInstaFeed(feed));
  }, []);

  if (!instaFeed) return null;

  return (
    <>
      <h1>National Geographic Travel</h1>
      <span>
        It’s a big world. Explore it through the lens of our photographers.
      </span>
      {instaFeed.map((image, index) => (
        <img
          key={index}
          src={image.src}
          alt={image.alt}
          onClick={() => window.open(image.url, "_blank")}
        />
      ))}
    </>
  );
};

alt text

Maintainer

Radovan Pelka (Rado)

| Radovan Pelka

Keywords

npm

FAQs

Package last updated on 06 Oct 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