undefined is not an object (evaluating 'react proptypes.func')