Last active
November 9, 2017 07:00
-
-
Save yuschick/713fc6ba6d2cd63bb8818c70818210c0 to your computer and use it in GitHub Desktop.
Accessible Web Apps with React, TypeScript & Ally.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface AppState { | |
showDialog: boolean; | |
} | |
class App extends React.Component<{}, AppState> { | |
state: AppState; | |
constructor(props: {}) { | |
super(props); | |
this.state = { | |
showDialog: false | |
}; | |
} | |
toggleDialog() { | |
this.setState({ showDialog: !this.state.showDialog }); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment