Skip to content

Instantly share code, notes, and snippets.

@yuschick
Last active November 9, 2017 07:00
Show Gist options
  • Save yuschick/713fc6ba6d2cd63bb8818c70818210c0 to your computer and use it in GitHub Desktop.
Save yuschick/713fc6ba6d2cd63bb8818c70818210c0 to your computer and use it in GitHub Desktop.
Accessible Web Apps with React, TypeScript & Ally.js
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