iim-alucas-rendu2

1.0.9 • Public • Published

Rendu Arthur LUCAS NPMJS

Installation

npm install iim-alucas-rendu2

How to use ?

this example is based on a React app

import myModule from 'iim-alucas-rendu2/src/index'

function ApiRequest(){

    const [festivals, setFestivals] = useState([]);

    myModule.getAllfestivals().then(data => {
        setFestivals(data);
    }).catch(error => {
        console.error('error')
    });

    console.log(festivals);
}

Here is a list of functions included by the module :

  • getAllRegions
  • getAllfestivals
  • filterFestivalsByQuery (take a string argument, to filter by department)
  • getFestivalSOrderByFieldASC
  • getFestivalSOrderByFieldDESC

Readme

Keywords

none

Package Sidebar

Install

npm i iim-alucas-rendu2

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

5.95 kB

Total Files

7

Last publish

Collaborators

  • arthurlcs