Skip to content

Commit 5a3a25e

Browse files
committed
Comments
1 parent fc4fd70 commit 5a3a25e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

example/src/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class App extends Component {
1111
}
1212

1313
handleLogIn () {
14+
// You can import the widget into any component and interact with it.
1415
netlifyIdentity.open()
1516
}
1617

example/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import App from './App';
55
import registerServiceWorker from './registerServiceWorker';
66
import netlifyIdentity from 'netlify-identity-widget';
77

8+
// You must run this once before trying to interact with the widget
89
netlifyIdentity.init({
910
logo: false
1011
})

0 commit comments

Comments
 (0)