.NET CLI has made it easy to create a new template.
Sometimes you might get a following error message while creating a SPA template.
I will show you what has caused it and how to get around it.
After reading this great article Using SVG as placeholders — More Image Loading Techniques by José M. Pérez , I decided to show a lightweight SVG background and then load a full background image.
Here is a workaround I used to get around the flickering issue.
switch statement when displaying React components.
Then I ran into a dynamic import().
I will show you 3 ways to use
import() to dynamically load React Components.
Let’s dive in 🏊~
As I was learning React, I’ve run into a situation where I needed to use node as a backend. I found this wonderful article Create React App with an Express Backend by Dave Ceddia.
But debugging required opening two command windows; One for node server, another for webpack dev server.
Can we do better?
What was involved to solve the question without
Use a dictionary & a lambda expression
I solved a CodeWars (programming challenge site) question and compared my answer to other solutions.
I was introduced to a different way of solving a question with a boolean operation.
Be prepared to be blown away.
SPOILER ALERT!: Answers are shown below so proceed at your own discretion (or try to solve the question yourself first before proceeding to compare your answer)
You git cloned a repository from GitHub without forking it.
The problem is that you made a bunch of changes and want to publish it to a new GitHub repository.
What are the steps required to accomplish it?
Remove original remote and add your own