Skip to content

Instantly share code, notes, and snippets.

@njwest
Created March 24, 2018 13:24
Show Gist options
  • Save njwest/55575e56d91bd256605be5599fef200d to your computer and use it in GitHub Desktop.
Save njwest/55575e56d91bd256605be5599fef200d to your computer and use it in GitHub Desktop.
src/App.js
# snip
import deviceStorage from './services/deviceStorage.js';
export default class App extends Component {
constructor() {
super();
this.state = {
jwt: '',
}
this.newJWT = this.newJWT.bind(this);
this.deleteJWT = deviceStorage.deleteJWT.bind(this);
this.loadJWT = deviceStorage.loadJWT.bind(this);
}
# snip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment