Last active
December 1, 2017 08:41
-
-
Save perjansson/31a254094ccd83ab80b7578f00b14962 to your computer and use it in GitHub Desktop.
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
| var CarList = React.createClass({ | |
| getInitialState: function() { } | |
| setSelectedCar: function(selectedCar) { } | |
| ... | |
| // becomes | |
| class CarList extends React.Component { | |
| state = { } | |
| setSelectedCar = selectedCar => { } | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment