react-hackernews

2.0.0 • Public • Published

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

Name Allowed values Default
type 'new', 'top', 'best', 'ask', 'show', 'job' 'top'
limit number 10
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

Dependencies (3)

Dev Dependencies (38)

Package Sidebar

Install

npm i react-hackernews

Weekly Downloads

4

Version

2.0.0

License

MIT

Unpacked Size

52.1 kB

Total Files

16

Last publish

Collaborators

  • jenbuzz