Open in app

Sign In

Write

Sign In

Ohans Emmanuel
Ohans Emmanuel

11.2K Followers

Home

About

Jul 7, 2022

Are strongly typed functions as parameters possible in TypeScript?

TLDR This question does not need to be overly explained. The short answer is yes. Functions can be strongly typed — even as parameters to other functions. How to use strongly typed function parameters The accepted answer on this stack overflow post is correct — to a degree. Assuming you had a function: speak: function speak(callback) {…

Typescript

2 min read

Are strongly typed functions as parameters possible in TypeScript?
Are strongly typed functions as parameters possible in TypeScript?
Typescript

2 min read


Jul 7, 2022

How do you explicitly set a new property on ‘window’ in Typescript?

TLDR Extend the existing interface declaration for the Window object. Introduction Knowledge builds upon knowledge. Whoever said that was right. In this section, we will build upon the knowledge from the last two sections: Interfaces vs Types in Typescript What is a d.t.s file in Typescript Ready? First, I must say, in…

Typescript

3 min read

How do you explicitly set a new property on ‘window’ in Typescript?
How do you explicitly set a new property on ‘window’ in Typescript?
Typescript

3 min read


Jul 7, 2022

What is a “.d.ts” file in TypeScript?

TLDR .d.ts files are called type declaration files. They exist for one purpose only: to describe the shape of an existing module and they only contain type information used for type checking. Introduction Upon learning the basics of TypeScript, you unlock superpowers. At least that’s how I felt. You automagically get warnings…

Typescript

6 min read

What is a “.d.ts” file in TypeScript?
What is a “.d.ts” file in TypeScript?
Typescript

6 min read


Jul 7, 2022

In Typescript, what is the ! (exclamation mark / bang) operator?

TLDR This is technically called the non-null assertion operator. If the typescript compiler complains about a value being null or undefined, you can use the ! operator to assert that the said value is not null or undefined. Personal take: avoid doing this wherever possible. What is the non-null assertion operator? null and undefined are valid Javascript…

Typescript

7 min read

In Typescript, what is the ! (exclamation mark / bang) operator?
In Typescript, what is the ! (exclamation mark / bang) operator?
Typescript

7 min read


Jun 26, 2022

The React Hooks API reference — easy-to-read (visual) version

React hooks were added to React in version 16.8. With the transition from class to functional components, hooks let you use state and other features within functional components i.e without writing a class component. This reference guide will discuss all the hooks natively available in React, but first, let’s start…

24 min read

The React Hooks API reference — easy-to-read (visual) version
The React Hooks API reference — easy-to-read (visual) version

24 min read


Jun 26, 2022

What is Typescript?

I published an Intermediate Typescript and React Handbook a few weeks ago. It received numerous views and I got several emails. Most were “thank you” emails, but then there were others like: “… I am new to programming, what is Typescript?” “Thanks for this free ebook, but how do I…

Typescript

7 min read

What is Typescript?
What is Typescript?
Typescript

7 min read


Published in Omio Engineering

·Dec 9, 2019

Google Ads and React.js: Delivering Ads with a Great UX

How to run on-site advertising that provides a seamless experience leveraging your company’s component libraries. Since the inception of online advertising, users have always complained about the design and relevancy of ads. …

Native Advertising

10 min read

Google Ads and React.js: Delivering Ads with a Great UX
Google Ads and React.js: Delivering Ads with a Great UX
Native Advertising

10 min read


Published in The Startup

·Jun 29, 2019

A Perfect Solution to Master Soft Skills

What no one tells you — Click to read for free — if blocked behind the Medium paywall. The studies on learning and mastery are clear. You don’t get better or achieve mastery at a skill by just practicing the same thing repeatedly. You also won’t get better by just reading. Neither is mastery solely the…

Self Improvement

9 min read

A Perfect Solution to Master Soft Skills — What no one tells you
A Perfect Solution to Master Soft Skills — What no one tells you
Self Improvement

9 min read


Published in Reactify

·Jun 25, 2019

What are Lifecycle Methods?

A 5-yr old guide to understanding lifecycle methods. — Click to read for free — if blocked behind the Medium paywall. He’s been writing software for a while, but new to the React ecosystem. Meet John.

Java Script

3 min read

What are Lifecycle Methods?
What are Lifecycle Methods?
Java Script

3 min read


Published in We’ve moved to freeCodeCamp.org/news

·May 2, 2019

Reintroducing React: every React update since v16 demystified.

In this article (and accompanying book), unlike any you may have come across before, I will deliver funny, unfeigned and dead serious comic strips about every React update since v16+. …

React

75 min read

Reintroducing React: every React update since v16 demystified.
Reintroducing React: every React update since v16 demystified.
React

75 min read

Ohans Emmanuel

Ohans Emmanuel

11.2K Followers

Authored 5 books and counting. This one will teach you intermediate to advanced Typescript in React: https://shrtm.nu/kqjM

Following
  • Tim Denning

    Tim Denning

  • Eric Elliott

    Eric Elliott

  • Megan Charles

    Megan Charles

  • Benjamin Hardy, PhD

    Benjamin Hardy, PhD

  • Chidume Nnamdi 🔥💻🎵🎮

    Chidume Nnamdi 🔥💻🎵🎮

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech