Crafting Dropdown with React and Jest

On my last post, I’ve talked about configuring ESlint with Airbnb convention on RubyMine editor. Now, I’m ready to write JavaScript code!

My team use React for creating frontend component, so this time I’ll explain about creating dropdown using React by creating the test first using Jest.

Continue reading “Crafting Dropdown with React and Jest”

Advertisements

Airbnb JavaScript Convention

Like what I mentioned in the previous post, my team will use Airbnb convention for writing JavaScript code. I looked on their Github, they provide so many guides to write JavaScript especially in ES6 syntax. Yep, my team will follow the guides there. But of course, we can’t remember all the rules at once, so we use the linter config provided by Airbnb. There will be a warning (or an error) message on every lines of our code that break the rules.

Continue reading “Airbnb JavaScript Convention”