---
title: "Lahiru Shiran (@lahirushiran) | Hashnode"
description: "Building Scalable Apps with React & Spring Boot. Read the latest articles by Lahiru Shiran on Hashnode."
url: "https://hashnode.com/@lahirushiran"
---

@lahirushiran

# Lahiru Shiran

@lahirushiran · Sri Lanka · Joined February 2025

Building Scalable Apps with React & Spring Boot.

### [When Default HTML Inputs Fail: Building a Medical-Grade Numeric Input in React](https://lahirushiran.hashnode.dev/when-default-html-inputs-fail-building-a-medical-grade-numeric-input-in-react?utm_source=hashnode&utm_medium=feed)

Learn to build precise React numeric inputs for healthcare, surpassing HTML limitations, ensuring medical-grade data accuracy

4 min read · [lahirushiran.hashnode.dev](https://lahirushiran.hashnode.dev/when-default-html-inputs-fail-building-a-medical-grade-numeric-input-in-react?utm_source=hashnode&utm_medium=feed)

[May 5, 2025](https://hashnode.com/posts/when-default-html-inputs-fail-building-a-medical-grade-numeric-input-in-react/681822bd437af9d081112ef8)

### [Understanding React Key Prop Behavior in Material-UI Autocomplete: A Deep Dive](https://lahirushiran.hashnode.dev/understanding-react-key-prop-behavior-in-material-ui-autocomplete-a-deep-dive?utm_source=hashnode&utm_medium=feed)

Explore the role of React's \`key\` prop in Material-UI Autocomplete, its impact on reconciliation, and best practices for optimal performance

4 min read · [lahirushiran.hashnode.dev](https://lahirushiran.hashnode.dev/understanding-react-key-prop-behavior-in-material-ui-autocomplete-a-deep-dive?utm_source=hashnode&utm_medium=feed)

[May 1, 2025](https://hashnode.com/posts/understanding-react-key-prop-behavior-in-material-ui-autocomplete-a-deep-dive/68131e66ad550b2b1cf3cf90)

### [How I Outsmarted <input type="number" />: Crafting a Reusable React Component for Precision Medical Data](https://lahirushiran.hashnode.dev/how-i-outsmarted-input-typenumber-crafting-a-reusable-react-component-for-precision-medical-data?utm_source=hashnode&utm_medium=feed)

Learn how to create a custom React component for precision medical data input, addressing issues with default HTML number inputs in clinical settings

3 min read · [lahirushiran.hashnode.dev](https://lahirushiran.hashnode.dev/how-i-outsmarted-input-typenumber-crafting-a-reusable-react-component-for-precision-medical-data?utm_source=hashnode&utm_medium=feed)

[Apr 21, 2025](https://hashnode.com/posts/how-i-outsmarted-input-typenumber-crafting-a-reusable-react-component-for-precision-medical-data/680667b3b0dd648c185a3881)

### [Stop Repeating Yourself: A Smarter Way to Fetch Data in React with Custom Hook](https://lahirushiran.hashnode.dev/stop-repeating-yourself-a-smarter-way-to-fetch-data-in-react-with-custom-hook?utm_source=hashnode&utm_medium=feed)

Create a custom React hook for efficient data fetching, reducing code duplication and simplifying error handling for cleaner components

3 min read · [lahirushiran.hashnode.dev](https://lahirushiran.hashnode.dev/stop-repeating-yourself-a-smarter-way-to-fetch-data-in-react-with-custom-hook?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/stop-repeating-yourself-a-smarter-way-to-fetch-data-in-react-with-custom-hook/67da48e429e753eb3fd7b371) [Mar 19, 2025](https://hashnode.com/posts/stop-repeating-yourself-a-smarter-way-to-fetch-data-in-react-with-custom-hook/67da48e429e753eb3fd7b371)

### [Master Encapsulation in Java - Unlock the Power of Getters, Setters & this Keyword!](https://lahirushiran.hashnode.dev/master-encapsulation-in-java-unlock-the-power-of-getters-setters-and-this-keyword?utm_source=hashnode&utm_medium=feed)

Learn Java encapsulation: protect data with private variables, control access using getters and setters, and enhance code with the \`this\` keyword

5 min read · [lahirushiran.hashnode.dev](https://lahirushiran.hashnode.dev/master-encapsulation-in-java-unlock-the-power-of-getters-setters-and-this-keyword?utm_source=hashnode&utm_medium=feed)

[Feb 24, 2025](https://hashnode.com/posts/master-encapsulation-in-java-unlock-the-power-of-getters-setters-and-this-keyword/67bc09f5bd9399e3730fb055)
