Hooks were introduced in react.js version 16.8. Hooks allow developers to use state and other React features without writing a class. Among the various hooks available, the useState hook is fundamental for managing state in functional components. This article provides…
Category: React
State Management in React Native with React Hooks and Context API
How do you manage state in a React application? Have you used Redux or Hookstate or MobX etc. to manage state in your last React application. Do you remember all the stuff like store, actions and reducers in Redux? And…
How to add path alias in React Native and to configure editors
Isn’t it frustrating to locate a file by path, for example by “../../../../../path/to/component” in import or require calls. Is there a better way for example making it like @core/component or @src/component? Yes, there is. Using path alias in React Native…
Deploy React App on Ubuntu 22.04 LTS on Amazon EC2 instance
React, also known as React.js or ReactJS, is a free and open-source front-end JavaScript library for building user interfaces based on UI components. ReactJS is maintained by Meta (formerly Facebook) and a community of individual developers and companies. Some of…
React Final Form + React DatePicker Implementation with Validations
A working example can be found at Codesandbox React Final Form is a popular Reactjs Plugin for handling forms. On the other hand React DatePicker is another popular ReactJs plugin with almost 5.6M downloads per week. React Final Form’s form…
A minimal way to implement select options field in React Final Form (with example)
React final form is one of the most popular form libraries in ReactJS. It provides different ways to implement different types of fields, some of which are, text input, textarea, radio and select input fields. The most common way is…
React Table Server Side Pagination with Sorting and Search Filters
After following [a post](https://dev.to/elangobharathi/server-side-pagination-using-react-table-v7-and-react-query-v3-3lck) on dev.to I was able to setup a basic table with React Table Server Side Pagination. However since the post did not have the sorting and search features I had to extend it and hence this…
Pros of Next.js framework for which it is an ideal candidate framework for your next ReactJS project
Its been some time being worked on custom ReactJS apps so it was the good time to check out some framework built in and for ReactJS. The very first name which I had been hearing for some time was the…
LocalStorage in JavaScript
LocalStorage is a type of web storage that allows JavaScript websites and apps to store and access data right in the browser with no expiration date. This means the data stored in the browser will persist even after the browser…
ReactJS check radio/checkbox buttons and scrolling of wrapper div to top – fixed
Issue: There is a long list of categories to select from. Since the list was long and it could not fit within the wrapper div the maximum height of the wrapper div had to be set and make the wrapper…