Skip to content

Commit

Permalink
Merge pull request #233 from oyeanuj/patch-1
Browse files Browse the repository at this point in the history
Added syntax highlighting
  • Loading branch information
ro-ka authored Nov 21, 2016
2 parents 897b15e + c66b10d commit cf73f96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ The Geosuggest works out of the box by just including it. However, you can custo

### ES6:

```
```js
import Geosuggest from 'react-geosuggest';

<Geosuggest />
```

### ES5:

```
```js
var Geosuggest = require('react-geosuggest').default;

<Geosuggest />
Expand Down Expand Up @@ -249,7 +249,7 @@ It is also possible to clear the value of the input contained within the GeoSugg

### Example

```
```js
import React from 'react';
import ReactDOM from 'react-dom';
import Geosuggest from 'react-geosuggest';
Expand Down Expand Up @@ -297,7 +297,7 @@ This component uses [BEM](http://csswizardry.com/2013/01/mindbemding-getting-you
### Note:

The `geosuggest__suggests--hidden` class is added to hide the suggestion list. You should copy the style below into your CSS file.
```
```css
.geosuggest__suggests--hidden {
max-height: 0;
overflow: hidden;
Expand All @@ -307,7 +307,7 @@ The `geosuggest__suggests--hidden` class is added to hide the suggestion list. Y
The above class is added whenever the suggestion list needs to be hidden. This occurs when the user selects an item from the list or when the user triggers the `blur` event on the input.

Similarly, you need to have the class `geosuggest__item--active` similar to this:
```
```css
.geosuggest__item--active {
background: #267dc0;
color: #fff;
Expand Down

0 comments on commit cf73f96

Please sign in to comment.