Egghead Instructor Basarat Ali Syed

Basarat Ali Syed

That #TypeScript guy. Helping #JavaScript - TS upgrades. YouTuber, Book Author, Presenter, OSS Dev .



Support Basarat's Free Lessons
become a member today

Browse Basarat Ali Syed's lessons.

showing 2 lessons...

Simplify asynchronous callback functions using async/await

Render Basic SVG Components in React

typescript tutorial about Simplify asynchronous callback functions using async/await

Simplify asynchronous callback functions using async/await

1:48 typescript

Learn how to write a promise based delay function and then use it in async await to see how much it simplifies code over setTimeout.

Lets say you want to call a function after 1s, 2s, 3s. You can use setTimeout, or you can wrap it up into a simple delay function that works with async/await

react tutorial about Render Basic SVG Components in React

Render Basic SVG Components in React

1:35 react

React loves svg just as much as it loves html. In this lesson we cover how simple it is to make SVG components in ReactJS.

Creating SVG components with React allows you to inline SVG. Inline SVG has an advantage that it can be styled with CSS just like the rest of your webpage and doesn't need a separate web request to load.

An additional advantage is of-course that you can use component props to customize the contents of the SVG.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?