Skip to content

Commit

Permalink
Replace useState import with useRef import in example
Browse files Browse the repository at this point in the history
Example makes use of useRef rather than useState
  • Loading branch information
JosephSemrai authored and bell-steven committed Nov 26, 2020
1 parent 673dd87 commit 0e12807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ You can access these methods using a ref.
### Example

```js
import React, { useEffect, useState } from 'react';
import React, { useEffect, useRef } from 'react';
import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete';

const GooglePlacesInput = () => {
Expand Down

0 comments on commit 0e12807

Please sign in to comment.