Created
July 24, 2019 01:07
-
-
Save methodbox/06f65ce53eeb0a76620bdf24501f16a0 to your computer and use it in GitHub Desktop.
Get Started with TypeScript - Part 2 - _getNewMission complete
This file contains hidden or 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
_getNewMission() { | |
this.setState({ | |
// Use this to change the state values when the button is clicked. | |
appTitle: 'SpaceX Launches', | |
launchImg: require('./assets/2013_-_9_falcon_9_ses_launch-4.jpg'), | |
rocketName: '', | |
missionName: '', | |
missionLogo: require('./assets/mission-logo.png'), | |
missionDetails: '', | |
missionSuccess: false, | |
flightNumber: 0, | |
missionId: '', | |
launchDate: '', | |
payloadSize: 0, | |
ships: [], | |
isShowingMissionData: true, | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment