I hereby claim:
- I am oreqizer on github.
- I am oreqizer (https://keybase.io/oreqizer) on keybase.
- I have a public key whose fingerprint is 6381 B42B 3743 FEA9 113E AAB2 D314 812A 32E0 151E
To claim this, I am signing this object:
import React, { PropTypes, PureComponent } from 'react'; | |
import Todo from '../../../universal/containers/Todo'; | |
const doneStyle = { | |
textDecoration: 'line-through', | |
}; | |
const notDoneStyle = { |
import React from 'react'; | |
import { connect } from 'react-redux'; | |
import { injectIntl } from 'react-intl'; | |
import messages from './messages'; | |
const TodoList = props => ( | |
<div className="TodoList"> | |
<h3>{props.intl.formatMessage(message.listHeader)}</h3> | |
{props.todos.map(todo => ( |
// @flow | |
import React from 'react'; | |
import Todo from '../containers/Todo'; | |
type Props = { | |
header: string, | |
todos: Todo[], | |
} |
// ... code | |
shouldComponentUpdate(nextProps) { | |
const { geo, ...rest } = this.props; | |
const geoOk = geo.lat === nextProps.geo.lat && geo.lon === nextProps.geo.lon; | |
return !(geoOk && Object.keys(rest) | |
.reduce((acc, key) => acc && rest[key] === nextProps[key], true)); | |
} | |
// ... code |
import React, { Component } from 'react'; | |
const FnComponent = props => ( | |
// ...your JSX | |
); | |
class ClassComponent extends Component { | |
// ...lifecycle hooks | |
// ...handlers |
// ...your component | |
export default connect((state, props) => ({ | |
todos: todosSelector(state, props), | |
}), todoActions)(Todos); |
// @flow | |
import React from 'react'; | |
import Todo from '../containers/Todo'; | |
import todoSelector from './todoSelector'; | |
type Props = { | |
filter: string, | |
header: string, |
import React from 'react'; | |
import Todo from '../../../universal/containers/Todo'; | |
const doneStyle = { | |
textDecoration: 'line-through', | |
}; | |
const notDoneStyle = { | |
textDecoration: 'none', |
import React, { PureComponent, PropTypes } from 'react'; | |
import { connect } from 'react-redux'; | |
import { Link } from 'react-router'; | |
import { List } from 'immutable'; | |
import TodoItem from './TodoItem'; | |
import TodosForm from './TodosForm'; | |
import todosSelector from './todosSelector'; | |
import * as todoActions from '../../../universal/modules/todo/todoDuck'; |
I hereby claim:
To claim this, I am signing this object: