typescript/javascript function can use returned value in arguments
```typescript function foo({ handler }: { handler: () => void }) { handler() return { bar() { return ‘the string bar’ }, } }
```typescript function foo({ handler }: { handler: () => void }) { handler() return { bar() { return ‘the string bar’ }, } }
Almost all SaaS systems need to implement Feature Flags and Settings(or Configurations) somehow. When people talk about them, they can be mixed together. The...
```typescript type ComponentProps = React.HTMLProps
configure user.name and user.email properly understand and use common git cli commands make good commit message use .gitignore filter files shouldn’...
When working for a company or a serious side hustle, probably this should be done via a third party library like https://www.npmjs.com/package/nanoid. Howeve...
Javascript is weird when compared to other popular programming languages. If you search it on the Internet, there’re a lot of articles talking about the weir...
I am not sure how many ways exactly to use a Map in Typescript. Just to list three here I believe are most commonly seen.
If to pass a variable which is a function, and also the type of that function need to be a generic one, it’s useful to define a generic function type when us...
CSS justify-* align-* basically includes: justify-content, justify-item, justify-self, align-content, align-item and alignt-self
e.target.value could look familiar by almost all experienced web developers. That’s commonly seen in the input text box event handler in reactjs code, .e.g o...