Get start with Typescript and Parcel

Typescript is a technology that grows every day. Companies like Slack, Airbnb or Google are changing their javascript codebase to Typescript. Frameworks like Vue, React and (Angular) are using Typescript for writing maintainable code. These steps show how to start a project with Typescript and Parcel. The full code is available https://github.com/danywalls/hello-typescript. Create a basic … Continue reading Get start with Typescript and Parcel

React Router in 3 minutes

Implement routing into a React app is so easy, the first step is to install react-router -dom package. npm i react-router-dom In the App.js import 3 essentials elements BrowserRouter, Route and Switch from react-router-dom, these handle our routes, create links and load components. import { BrowserRouter as Router, Route, Switch } from “react-router-dom”; Every one … Continue reading React Router in 3 minutes

Gatsby, StaticQuery, and PageQuery part 3

Today is my 3rd day with Gatsby, if you read my previous post about GraphQL, I had a pending task bind the data from GraphQL using StaticQuery component and query in Pages. StaticQuery is used to connect our components with GraphQL, it can wrap all component and bring access to the query result. Page Query is const with the GraphQl … Continue reading Gatsby, StaticQuery, and PageQuery part 3