Socket
Socket
Sign inDemoInstall

react-hackernews

Package Overview
Dependencies
18
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-hackernews

HackerNews as a React component


Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Install size
2.88 MB
Created
Weekly downloads
 

Readme

Source

react-hackernews

Add a HackerNews feed to your React app.

Installation

$ npm install react-hackernews

or

$ yarn add react-hackernews

Usage

import React from 'react';
import HackerNews from 'react-hackernews';

const MyComponent = () => <HackerNews />;

Options

NameAllowed valuesDefault
type'new', 'top', 'best', 'ask', 'show', 'job''top'
limitnumber10
import React from 'react';
import HackerNews from 'react-hackernews';

const MyComponent = () => <HackerNews type="new" limit="100" />;

Styling

The feed is wrapped in a container with the classname "react-hackernews".

License

This package is open-sourced software licensed under the MIT license

Keywords

FAQs

Last updated on 07 Oct 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc