---
title: "Anıl Anar (@anilanar) | Hashnode"
description: "Anıl Anar (@anilanar) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@anilanar"
---

@anilanar

# Anıl Anar

@anilanar · Joined July 2021

### [VSCode: How to infer function return types in Typescript](https://anilanar.hashnode.dev/vscode-how-to-infer-function-return-types-in-typescript?utm_source=hashnode&utm_medium=feed)

TL;DR You don't need an extension. You don't need a plugin. You don't need a library. It's a built-in feature! Just press Cmd + . or Ctrl + . when your cursor is placed just before the opening paranthesis of function arguments. function foo(a: stri...

1 min read · [anilanar.hashnode.dev](https://anilanar.hashnode.dev/vscode-how-to-infer-function-return-types-in-typescript?utm_source=hashnode&utm_medium=feed)

[Aug 5, 2021](https://hashnode.com/posts/vscode-how-to-infer-function-return-types-in-typescript/610c0119528eff11aea85d28)

### [How to generate unique html ids in React](https://anilanar.hashnode.dev/how-to-generate-unique-html-ids-in-react?utm_source=hashnode&utm_medium=feed)

Edit: I noticed that this approach doesn't work for server-side rendering due to randomness. To solve that issue, React released useId in v18. TL;DR v2 I published this work. See anilanar/idhook. TL;DR v1 npm install nanoid and then use this hook: i...

2 min read · [anilanar.hashnode.dev](https://anilanar.hashnode.dev/how-to-generate-unique-html-ids-in-react?utm_source=hashnode&utm_medium=feed)

[Aug 4, 2021](https://hashnode.com/posts/how-to-generate-unique-html-ids-in-react/610b1eafee887d4cb49657ba)

### [My journey to nix flakes, part 2](https://anilanar.hashnode.dev/my-journey-to-nix-flakes-part-2?utm_source=hashnode&utm_medium=feed)

Home-manager with flakes

1 min read · [anilanar.hashnode.dev](https://anilanar.hashnode.dev/my-journey-to-nix-flakes-part-2?utm_source=hashnode&utm_medium=feed)

[Jul 24, 2021](https://hashnode.com/posts/my-journey-to-nix-flakes-part-2/60fc04a118fbbb77c9465839)

### [My journey to nix flakes, part 1](https://anilanar.hashnode.dev/my-journey-to-nix-flakes-part-1?utm_source=hashnode&utm_medium=feed)

My journey of configuring both my desktop PC and Macbook using nix flakes.

4 min read · [anilanar.hashnode.dev](https://anilanar.hashnode.dev/my-journey-to-nix-flakes-part-1?utm_source=hashnode&utm_medium=feed)

[Jul 21, 2021](https://hashnode.com/posts/my-journey-to-nix-flakes-part-1/60f8907e3e181324dac73c42)
