Posts about

typesript

HomeDevelopmentDesignTechnologyPhotographyAbout
TypeScript Enums vs String Literals
development, javascript, typesriptOctober 12, 2021By admin

TypeScript Enums vs String Literals

Enums help to define a set of named constants. Using enums can make it easier to document intent, or create a set of distinct cases.

Should we declare React functional components with a const or a function?
development, javascript, typesript, reactOctober 16, 2021By admin

Should we declare React functional components with a const or a function?

If you have been writing React functional components for a while now, you may have encountered two ways of declaring a component - an arrow function or a function declaration.

    Created by Sean Amarasinghe