---
title: "Nishi Surti (@nishisurti) | Hashnode"
description: "Just a noob in coding. Read the latest articles by Nishi Surti on Hashnode."
url: "https://hashnode.com/@nishisurti"
---

@nishisurti

# Nishi Surti

@nishisurti · Kitchener Canada · Joined January 2025

Just a noob in coding

### [Return an index of an element](https://nishi-can-code.hashnode.dev/return-an-index-of-an-element?utm_source=hashnode&utm_medium=feed)

Learn how to find the index of an element in an array and handle cases when the element is not found

4 min read · [nishi-can-code.hashnode.dev](https://nishi-can-code.hashnode.dev/return-an-index-of-an-element?utm_source=hashnode&utm_medium=feed)

[Aug 15, 2025](https://hashnode.com/posts/return-an-index-of-an-element/689f770a48b04b3f8f31e17a)

### [Compound Components](https://nishi-write-code.hashnode.dev/compound-components?utm_source=hashnode&utm_medium=feed)

Learn how compound components in React can simplify UI element management, reduce prop drilling, and enhance code scalability and maintainability

3 min read · [nishi-write-code.hashnode.dev](https://nishi-write-code.hashnode.dev/compound-components?utm_source=hashnode&utm_medium=feed)

[Jul 11, 2025](https://hashnode.com/posts/compound-components/68714d6d4aabdf55010a8c79)

### [Don't Let AI Derail Your Next Project's PR](https://nishi-can-code.hashnode.dev/dont-let-ai-derail-your-next-projects-pr?utm_source=hashnode&utm_medium=feed)

Protect your project's reputation with strategic human oversight and ethical considerations in AI communications to mitigate AI-driven PR risks

2 min read · [nishi-can-code.hashnode.dev](https://nishi-can-code.hashnode.dev/dont-let-ai-derail-your-next-projects-pr?utm_source=hashnode&utm_medium=feed)

[Jun 26, 2025](https://hashnode.com/posts/dont-let-ai-derail-your-next-projects-pr/685d7385208ffbd9312fec92)

### [useState in React: Why Your Variable Stays the Same (and How to Fix It)](https://nishi-can-code.hashnode.dev/usestate-in-react-why-your-variable-stays-the-same-and-how-to-fix-it?utm_source=hashnode&utm_medium=feed)

Learn why React state doesn't update and fix it using \`useState\`. Discover principles and best practices for state management

6 min read · [nishi-can-code.hashnode.dev](https://nishi-can-code.hashnode.dev/usestate-in-react-why-your-variable-stays-the-same-and-how-to-fix-it?utm_source=hashnode&utm_medium=feed)

[Jun 24, 2025](https://hashnode.com/posts/usestate-in-react-why-your-variable-stays-the-same-and-how-to-fix-it/685aa45f89da2c9a8fc4c84e)

### [Frameworks vs Libraries: Key Differences Every Developer Must Know](https://nishi-can-code.hashnode.dev/frameworks-vs-libraries-key-differences-every-developer-must-know?utm_source=hashnode&utm_medium=feed)

Explore the key differences between frameworks and libraries, and learn how to choose the right foundation for your software development projects

4 min read · [nishi-can-code.hashnode.dev](https://nishi-can-code.hashnode.dev/frameworks-vs-libraries-key-differences-every-developer-must-know?utm_source=hashnode&utm_medium=feed)

[Jun 23, 2025](https://hashnode.com/posts/frameworks-vs-libraries-key-differences-every-developer-must-know/68596fab5def9bc6c4dd8d5e)
