quickrworld / MobileFlashcards

React native Mobile Flashcards
0 stars 0 forks source link

Use ES6 #6

Closed quickrworld closed 6 years ago

quickrworld commented 6 years ago

Consider replacing with ES6 eqvivalent:

function mapStateToProps(state) {
    const { settings, decks } = state
    return { settings, decks }
}

ES6 equivalent:

const mapStateToProps = ({ settings, decks }) => ({ settings, decks });
quickrworld commented 6 years ago

Changes complete.