The easiest way to create a react application is using the create-react-app package. Install it globally in your machine running
$ npm i -g create-react-app| // ################### | |
| // #### React hook ###### | |
| // ################### | |
| import { useEffect, useRef, useState } from 'react'; | |
| /* eslint-disable global-require */ | |
| const Places = typeof window !== 'undefined' && require('places.js'); | |
| export default function useAlgoliaPlaces({ options, events }) { |