My view looks something like this (but I've slimmed it down for simplicity)
view.jsx
import * as R from 'ramda';
import { Validate } from 'src/utils/validate';
class example extends Component {
    constructor(props) {
        super(props);
        this.state = {
            model: EMPTY_MODEL,
            validation: EMPTY_VALIDATION,
        };
        this.validate = R.bind(Validate, this);
    }
    render() {
        <div>
            <input
                id="example"
                type="text"
                onChange={ this.validate }
            />
        </div>
    }
}
validate.js
import * as R from 'ramda';
export const Validate = ({ currentTarget }) => {
    console.log(this); // outputs: {}
    console.log(this.state); //outputs: undefined
    debugger; //console.log(this.state); outputs { model: {}, validation: {} }
    let { validation } = this.state; //Error: Cannot read prop 'validation'of undefined
    const { id, value } = currentTarget;
    switch (currentTarget.id) {
        case 'example':
            if(value.length < 4) {
                this.setState({
                    validation: R.assocPath([id, 'valid'], false, validation),
                });
            }
            break;
        default:
            break;
    }
}
Core Question
- What do I need to do to have access to 
this.state.validationinside of validate.js using bind? (I would like to avoid passingthisto validate as a param) 
Questions to understand
- Why does console output 
undefinedin validate.js, but if I output variables during the debugger I get the expected values?