HackerNews as a React component
npm install react-hackernewsAdd a HackerNews feed to your React app.
``bash`
$ npm install react-hackernews
or
``
$ yarn add react-hackernews
`javascript
import React from 'react';
import HackerNews from 'react-hackernews';
const MyComponent = () =>
`
| Name | Allowed values | Default |
| ----- | ------------------------------------------ | ------- |
| type | 'new', 'top', 'best', 'ask', 'show', 'job' | 'top' |
| limit | number | 10 |
`javascript
import React from 'react';
import HackerNews from 'react-hackernews';
const MyComponent = () =>
``
The feed is wrapped in a container with the classname "react-hackernews".
This package is open-sourced software licensed under the MIT license