File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
- [ ![ build status] ( https://secure.travis-ci.org/no23reason/react-geolocated.svg )] ( http://travis-ci.org/no23reason/react-geolocated ) [ ![ bitHound Score] ( https://www.bithound.io/github/no23reason/react-geolocated/badges/score.svg )] ( https://www.bithound.io/github/no23reason/react-geolocated ) [ ![ Dependency Status] ( https://david-dm.org/no23reason/react-geolocated.svg )] ( https://david-dm.org/no23reason/react-geolocated )
1
+ [ ![ build status] ( https://secure.travis-ci.org/no23reason/react-geolocated.svg )] ( http://travis-ci.org/no23reason/react-geolocated )
2
+ [ ![ npm version] ( https://img.shields.io/npm/v/react-geolocated.svg )] ( https://www.npmjs.com/package/react-geolocated )
3
+ [ ![ bitHound Score] ( https://www.bithound.io/github/no23reason/react-geolocated/badges/score.svg )] ( https://www.bithound.io/github/no23reason/react-geolocated )
4
+ [ ![ Dependency Status] ( https://david-dm.org/no23reason/react-geolocated.svg )] ( https://david-dm.org/no23reason/react-geolocated )
2
5
# react-geolocated - React.js Higher-Order Component for using [ Geolocation API] ( https://developer.mozilla.org/en-US/docs/Web/API/Geolocation )
3
6
4
7
## Demo
5
8
Basic demo can be found at the [ demo page] ( https://no23reason.github.io/react-geolocated/ ) .
6
9
7
10
## Basic Usage
8
11
12
+ Install using ` npm ` :
13
+ ``` bash
14
+ npm install react-geolocated --save
15
+ ```
16
+
17
+ Then using in your application like this:
18
+
9
19
``` js
10
20
import React from ' react' ;
11
21
import {geolocated } from ' react-geolocated' ;
You can’t perform that action at this time.
0 commit comments