Skip to content

Instantly share code, notes, and snippets.

@StarpTech
StarpTech / algolia-places-hook.js
Last active October 12, 2021 13:07
Algolia Places React Hook - SSR compatible - https://github.com/algolia/places
// ###################
// #### 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 }) {
@arol
arol / react-redux.md
Last active December 13, 2018 18:36
React & Redux

React

Install

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
@arol
arol / express-js.md
Created July 14, 2017 22:30
ExpressJS Guide

Express

Install

$ mkdir myapp
$ cd myapp
$ npm init #follow instructions - wizard app
$ git init
$ npm i express