How do I undo my most recent local commits in Git?
Did you accidentally commit a whole bunch of files in Git, but - thankfully - haven’t pushed that commit to remote, and want to undo it? I'll show you a couple ways you can fix it (one-liners!).
Thoughts, tips, and tricks on React, CSS, JavaScript, and programming in general.
Did you accidentally commit a whole bunch of files in Git, but - thankfully - haven’t pushed that commit to remote, and want to undo it? I'll show you a couple ways you can fix it (one-liners!).
Ever click a button or tab and have all the text instead? You can prevent simple accidents like that from happening again with vanilla CSS - no JavaScript needed!
Let's talk about the spread operator in JavaScript. These little dots (...) may look weird, but they're really helpful for managing props and state.