Skip to content

Instantly share code, notes, and snippets.

@methodbox
Last active July 24, 2019 01:05
Show Gist options
  • Save methodbox/a63020cb99c2f968ddcd7bdbef24ef93 to your computer and use it in GitHub Desktop.
Save methodbox/a63020cb99c2f968ddcd7bdbef24ef93 to your computer and use it in GitHub Desktop.
Get Started with TypeScript - Part 2 - Add a new State type
import * as React from 'react';
import './styles.css';
// Rocket Info
import { mission } from './data/rockets';
import 'bootstrap/dist/css/bootstrap.css';
// Create a State type below this line
type State = {}
export default class RocketApp extends React.Component<{}, {}> {...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment