---
title: "Leonard Kioi Kinyanjui (@lkioi) | Hashnode"
description: "React · NextJS · Typescript. Read the latest articles by Leonard Kioi Kinyanjui on Hashnode."
url: "https://hashnode.com/@lkioi"
---

@lkioi

# Leonard Kioi Kinyanjui

@lkioi · Joined November 2021

React · NextJS · Typescript

### [React Elements & JSX](https://lkioi.hashnode.dev/react-elements-jsx?utm_source=hashnode&utm_medium=feed)

What you will learn by the end of this article: What a React Element is. How to create React Elements. What JSX is. Rules of JSX. Elements are the basic building blocks of React and a good understanding of them will help you understand how React wo...

4 min read · [lkioi.hashnode.dev](https://lkioi.hashnode.dev/react-elements-jsx?utm_source=hashnode&utm_medium=feed)

[Sep 8, 2023](https://hashnode.com/posts/react-elements-jsx/64fb0c25728f628582365bc1)

### [🥞 Creating Pancake Stack Layout Pattern](https://lkioi.hashnode.dev/creating-pancake-stack-layout-pattern?utm_source=hashnode&utm_medium=feed)

A pancake stack or sticky footer layout is a pattern where the footer "sticks" to the bottom of the viewport when content is short and when content extends beyond the viewport, the footer sits at the bottom of the content. This layout pattern can be...

3 min read · [lkioi.hashnode.dev](https://lkioi.hashnode.dev/creating-pancake-stack-layout-pattern?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/creating-pancake-stack-layout-pattern/648d68f6c12c557c9ca3494a) [Jun 17, 2023](https://hashnode.com/posts/creating-pancake-stack-layout-pattern/648d68f6c12c557c9ca3494a)

### [Debouncing while using React Query](https://lkioi.hashnode.dev/debouncing-while-using-react-query?utm_source=hashnode&utm_medium=feed)

React Query is the most popular React library for managing async queries. It allows you to fetch data declaratively and handles caching and re-fetching of data. Debouncing will enable you to avoid making a query more times than necessary. For example...

3 min read · [lkioi.hashnode.dev](https://lkioi.hashnode.dev/debouncing-while-using-react-query?utm_source=hashnode&utm_medium=feed)

[Jun 9, 2023](https://hashnode.com/posts/debouncing-while-using-react-query/6483300722b33d59eed3c31b)

### [How to fix Dart Lang Error: RangeError (index): Index out of range: no indices are valid: 0](https://lkioi.hashnode.dev/how-to-fix-dart-lang-error-rangeerror-index-index-out-of-range-no-indices-are-valid-0?utm_source=hashnode&utm_medium=feed)

In C-like languages like JS, it's a common operation to assign a value to an array in a for loop at a given index using \[\]. Like this: With Dart lang trying this: You get the error: RangeError (index): Index out of range: no indices are valid: 0 Th...

1 min read · [lkioi.hashnode.dev](https://lkioi.hashnode.dev/how-to-fix-dart-lang-error-rangeerror-index-index-out-of-range-no-indices-are-valid-0?utm_source=hashnode&utm_medium=feed)

[May 25, 2023](https://hashnode.com/posts/how-to-fix-dart-lang-error-rangeerror-index-index-out-of-range-no-indices-are-valid-0/646f05d85496eb714b8e6cab)

### [Reducing unnecessary re-renders with React.memo](https://lkioi.hashnode.dev/reducing-unnecessary-re-renders-with-reactmemo?utm_source=hashnode&utm_medium=feed)

Let's begin by understanding what a render is. A render is when React calls the render function of a class component or calls a function component in order to get the React elements. Note that this is not actually making changes to the DOM. A compone...

3 min read · [lkioi.hashnode.dev](https://lkioi.hashnode.dev/reducing-unnecessary-re-renders-with-reactmemo?utm_source=hashnode&utm_medium=feed)

[Jul 16, 2022](https://hashnode.com/posts/reducing-unnecessary-re-renders-with-reactmemo/62d28b936293201105cd4305)
