Skip to content

Instantly share code, notes, and snippets.

View sultan99's full-sized avatar

Sultan Arziyev sultan99

View GitHub Profile
import {compose} from 'redux'
import {store} from './store.js'
const pickSelectedUser = props => {
const {selectedName, users} = props
const foundUser = users.find(user => user.name === selectedName)
return foundUser.id
}
@sultan99
sultan99 / movie-list.json
Created August 20, 2019 16:04
Movie list
[
{
"name": "The Shawshank Redemption",
"year": 1994
},
{
"name": "The Godfather",
"year": 1972
},
{