Test Clicks On Connected Components In Under 10 Lines of Code

Here’s a fairly benign component, that can give developers pause when its time to write unit tests for your components:  const ClickableButton = props => ( <button onClick={props.doSomething}>Click Me!</button> ) const mapDispatchToProps () => ({ doSomething: dispatch(someFancyAction()) }) export default connect( null, mapDispatchToProps, )(ClickableButton) There is only thing worth testing here: That when we click […]

Continue reading

I Google Simple Functions Daily… Am I A Bad Developer?

“Help! I Landed A Job, And I Have No Idea What I’m Doing!” Do you feel like you don’t know what you’re doing… like you’re a fraud? Impostor syndrome is common in our industry. Wondering when you’ll “just know” something and not be so reliant on Google & Stack Overflow? That day never comes. Anxiety comes from […]

Continue reading
1 2 3 11