Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,30 @@ HelloJS relies on these fantastic services for it's development and deployment,

- [BrowserStack](https://www.browserstack.com/) for providing a means to test across multiple devices.

### Example usage with React

If you want to use **hello.js** in a React project:

```jsx
import hello from 'hellojs';

hello.init({
google: 'YOUR_GOOGLE_CLIENT_ID',
});

function LoginButton() {
const handleLogin = () => {
hello('google')
.login()
.then(() => alert('Logged in!'));
};

return <button onClick={handleLogin}>Login with Google</button>;
}

export default LoginButton;



## Can I contribute?

Expand Down