Create a loading component using HOCs for fetching data from your server and have fun!

If you have worked with React, you have probably come across High Order Components (HOC).

A higher-order component (HOC) is an advanced technique in React for reusing component logic. HOCs are not part of the React API, per se. They are a pattern that emerges from React’s compositional nature.


When you are developing your Single Page Application there is a moment when you need design the url structure too.

Usually developers use 2 types of url…

Normal Url

This is the url that we are used to seeing, with normal path, like this:

This kind of url has the…

In this post we will explore the right way to use JWT token in a Single Page Application and HOW to manage it in order to avoid security issues. Read on!

Single Page Applications are become the standard of the web development architecture. One of the best methods to authenticate a user is by using JWT web token, so first of all, let’s see a general view of what is it and when you should use it!

What’s JWT token?

JSON Web Token (JWT)…


Full-stack Developer & Security Enthusiast

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