This small difference makes a big change in usability.

React hooks banner picture
React hooks banner picture

You may have written your own custom hooks in React before which looked a bit like this:

const useExample = () => {
let myVar = "";

// Hook Logic...
return {

And called it like this:

const {myVar} = useExample();

This is all pretty simple. We’re returning an object from the useExample hook and using object destructuring to access myVar .

But if you look at other hooks, you may notice that they do not use object destructuring — they use an array.

const [value, setValue]…

They say breakfast is the most important meal of the day. If you grew up in the 2000s then this is probably even more true.

Captain Crunch game title card
Captain Crunch game title card

I used to love breakfast as a kid. The excitement of opening a new box of cereal and unwrapping a badly injection-moulded plastic toy. It used to really take the sting out of having to go to school in 20 mins.

Harness the power of sentiment analysis and start writing easier-to-understand articles.

Picture this.
You stumble across an interesting article. The headline draws you in with a bold statement and the subheading hooks your interest. But as you start to read on, you realise that this article is 100% pure rambling.
Your initial excitement turns to anger as you shout “get to the point!” and start to skim read the remaining sections. At this point, it’s already over, and you close the tab.

We’ve all been here at some point, and if you write your own articles then you know the…

The story behind the internet’s favorite “meme stock”.

Gamestop stock graph going way up in value
Gamestop stock graph going way up in value

If you use social media or keep half an eye on financial news, you’ve probably seen something a little surprising. $GME, the stock symbol for GameStop, has risen in value a massive 5,275.30% in price. But what’s going on here?? And what even is a naked short anyway??


Let us go back to 2019, a time before COVID, and meet the protagonist of this story — GameStop.
GameStop is a business in trouble. A brick-and-mortar store stuck in the 2010s that has been unable or unwilling to adapt to the digital and…

How big do you think your digital footprint is?

Photo by Markus Spiske on Unsplash

Whether it’s liking an Instagram post or checking your favorite news app for the latest Covid information, we’re continuously and unavoidably generating data. As we browse and binge, our behavior is tracked, stored and interpreted, eventually being sold back to us in the form of scarily accurate targeted advertising. If the product is free, you are the product. And what makes up “you” online? You are your data.

The scary part of this is that you probably already know and accept this. How many times have you joked about Alexa secretly recording you, or talked about a product in a…

Photo by Harpal Singh on Unsplash

8 rules to bear in mind for your next UI project

“People ignore design that ignores people.” — Frank Chimero

Put simply, UI can make or break your product. Humans, for all our self-perceived intelligence, are in fact relatively shallow and simple creatures. We place a high value on things that look pleasing to the eye even if they perform below par. This is part of the reason Apple is a trillion-dollar company.

UI is the way in which humans and computers interface and as a developer, it’s part of our job to streamline this interaction. …

Don’t get caught out by this somewhat surprising interaction.

Photo by marcos mayer on Unsplash

I was writing a GET request to an endpoint the other day and in my testing, I was receiving a lot of 400 errors. 400 errors are to do with client errors, basically errors caused by the person making the request. Some common 400 errors are;
- 400 Bad Request
- 401 Unauthorized
- 404 Not Found
418 I’m a teapot (Ok maybe not so much this one, but it is a real error code)

Now, this was absolutely fine, I had excepted to run into these errors. But what…

A picture of a darkly lit city
A picture of a darkly lit city
Photo by Devin Avery on Unsplash

If you’re currently or aspiring to be a node.js developer, knowing the difference between npx and npm is essential.

If you’re reading this article you’re probably already familiar already with what npm is. For those that are not, npm is simply a package manager — a CLI tool that allows us to install and use various packages of code from the Node library. Npm can do much more than this but, for simplicity's sake, we can just think of it as allowing us to download and run packages locally within our projects.

Npx is very similar to npm, but differs…

From CRA to Github Pages in 3 mins

1. Create a Github Repo

We can’t have GitHub pages without a GitHub repo so let's make a blank one.

James Brightman

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store