react-google-url-shortner
v1.0.0
Published
This package includes google url shortner
Downloads
4
Readme
react-google-url-shortner
npm package for react
This module creates short-url for the given url.
Props
- url (Required) - Add url you want to shorten.
- GOOGLE_API_KEY - Api Key created from google Project.
Usage
import GoogleUrlShortner from 'react-google-url-shortner';
// ...
class Foo extends Component {
render() {
return (
<GoogleUrlShortner
url="{example url here}"
GOOGLE_API_KEY="{YOUR project API key here}"
/>
);
}
}