react-goodreads-simple

1.0.10 • Public • Published

react-goodreads-simple

This project is a React-based component to render your own book shelf. It was built using create-react-app.

To use this component

Prerequisites: You need to have Node + NPM installed.

import React from "react";
import BookShelf from "react-goodreads-simple";

export default function MyBookShelf() {
  return (
    <BookShelf
      apikey="YOUR_GOODREADS_API_KEY"
      userid="YOUR_GOODREADS_API_KEY"
    />
  );
}

userid and apikey are mandatory properties. Other properties to pass in are:

  • shelf: string matching the shelf to fetch goodreads data from. Default is 'read'
  • page: string representing the number of pages of results to fetch from goodreads. Default is '1'
  • per_page: string representing the number of results to be fetched per page. Default is '10'
  • sort: column to sort the results, represented as string. Default is 'date_read'

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Package Sidebar

Install

npm i react-goodreads-simple

Weekly Downloads

2

Version

1.0.10

License

MIT License

Unpacked Size

19.5 kB

Total Files

7

Last publish

Collaborators

  • rajiraj