Home/Arihant Verma
Author
AVArihant Verma

Arihant Verma

2 articles by Arihant Verma.

Performance — React Children And Iteration Methods — Smashing Magazine

React Children And Iteration Methods — Smashing Magazine

In this article, we’ll discuss and learn about the use case of iterating over React `children` and the ways to do it. In particular, we will deep dive into one of the utility methods, `React.Children.toArray`, that React gives us, which helps to iterate over the children in a way which ensures performance and determinism.

AVArihant VermaArihant Verma·August 4, 2021Performance
Frontend — Creating An Outside Focus And Click Handler React Component — Smashing Magazine

Creating An Outside Focus And Click Handler React Component — Smashing Magazine

In this article, we’ll look at how to create an outside focus and click handler with React. You’ll learn how to recreate an open-source React component (react-foco) from scratch in doing so. To get the most out of this article, you’ll need a basic understanding of JavaScript classes, DOM event delegation and React. By the end of the article, you’ll know how you can use JavaScript class instance pr

AVArihant VermaArihant Verma·March 3, 2021Frontend