Skip to content

Latest commit

 

History

History
250 lines (185 loc) · 25.7 KB

File metadata and controls

250 lines (185 loc) · 25.7 KB

drawing

Let's learn about React Hook via these 60 free blog posts. They are ordered by HackerNoon reader engagement data. Visit the /Learn or LearnRepo.com to find the most read blog posts about any technology.

React Hooks are functions that let you 'hook into' React state and lifecycle features from function components. They simplify state management and side effects, making component logic more reusable and easier to test within React applications.

Functional components are far more efficient than class based components. Less code is needed to be written to achieve the same goal.

The Perfect React modal windows subsystem implementation for 2023

Below is a small gif of what we will be building. A simple search box that allows us search through a contact list. We would be using functional components rather than class based components to achieve this.

What are useRef and forwarRef in react. When you should use them and when you should avoid using them. Problems, that could occur during useRef usage.

Hi guys, I want to introduce use-places-autocomplete. It's a React.js hook for Google Maps Places Autocomplete. With it you can build your own places autocomplete UI like the following demo easily! Hope you guys 👍🏻 it.

Using Web Animations API (a.k.a WAAPI) in the React hook way. Let's create highly-performant, flexible and manipulable web animations in the modern world. Hope you guys 👍🏻 it!

Recently, React announced a feature of the React ecosystem — Concurrent Mode. This would allow us to stop or delay the execution of components for the time that we need. It’ll help React apps stay responsive and gracefully adjust to the user’s device capabilities and network speed.

From version 16.8.0, React introduced us to a way to use state and other React features without writing a class — React Hooks.

React Native Animation is an interesting topic56 where a dull application could be converted into an interactive and beautiful app. When you first login into an application, the thing which impresses us the most is interface and its interactivity. Working with animations could look a bit overwhelming at first but it is essentially a process of just 3 steps.

Well, we all know that ref helps us to get access to the DOM. But let's consider next situation, we have some React component and we want to know how many times this component was rendered. How can we achieve that? Well, maybe we can use React useEffect and useState hooks to determine that the component was re-rendered. Something like this:

Who said render props are obsolete? The good old pattern is still valid for the common use case where hooks may not always be the right choice.

Unleash the full potential of React Hooks! Discover how to leverage this powerful feature to enhance your React applications with examples and common pitfalls.

react-cool-dimensions is a React hook that measure an element's size and handle responsive components with highly-performant way, using ResizeObserver. Try it you will ❤️ it!

There are a lot of React pre-made components out there that promise infinite scroll functionality. The problem with that is that sometimes they are not tailored to fit your specific needs, especially if you are using the newly featured React-Hooks to create functional components all across your application. These pre-made components work well with class components, but they have not been updated to work with the state-of-the-art functional hook-components.

useState is a simple hook for single state. useReducer is a powerful hook for complex state. Here's how to convert from useState to useReducer.

Two custom hooks as an alternative for componentDidMount() and componentDidUpdate() React lifecycle method.

Learn how to fetch data with Redux toolkit.

In this tutorial, we’ll build an interactive hangman game using React hooks. Hangman is a classic game in which the player guesses a word one letter at a time.

We can create a custom hook that will be used to handle all asynchronous data fetching and updating the state updating.

Hooked on React Hooks — useStateSo what’s all the rage with React hooks? I’ve been exploring it for the past few months and lets just say I really believe that this is what React has needed to surmount its position as the top front end framework.

React library provides us two built-in hooks to optimize the performance of our app: useMemo & useCallback. At first glance, it might look like their usage is quite similar, so it can get confusing about when to use each. To clear that confusion, let’s dig in and understand the actual difference and the correct way to use them both.

The react hooks are regular functions.

Higher Order Components are actually a design pattern derived from the compositional nature of React, which allows us to derive components...

React components are simply functions. Some are created with classes, better known as stateful and / or class components, and the others are created with functions only, also known as stateless and/or functional components.

Take advantage of React virtual DOM and create a single page application that behaves as a multiple page application. React Router DOM is a great tool to make this possible; in this article, I will explain how to use it.

Note: This is the first article in a series of articles where we will cover React Hooks in Depth and try to understand their usage.

In this post, I will share my own point of view about React Hooks, and as the title of this post implies, I am not a big fan.

Create a web page that takes a city name as input and provides weather data about the city.

A React hook to filter large amount of data using Web Worker.

Previously I wrote about RTK, this story will cover other details of its use.

react-cool-onclickoutside is a React hook to trigger callback when user clicks outside of the target component(s) area. It's a useful logic for UI interaction design (IxD) like dismiss a dropdown menu, modal or tooltip etc. Help you guys ❤️ it.

⚡️ Live demo: https://react-cool-onclickoutside.netlify.app

Recently, I released the react-cool-inview, it's a React hook that monitors an element enters or leaves the viewport (or another element) with performant and efficient way, using Intersection Observer. It's lightweight and super flexible, which can cover all the cases that you need, like lazy-loading images and videos, infinite scrolling web app, triggering animations, tracking impressions, and more. Try it you will 👍🏻 it!

React Hooks are a powerful technique liked by many developers. They allow the use of React features like state managing or the use of lifecycle methods.

And how we stopped our React Context re-rendering everything

Custom hooks are an amazing thing that happened with React. It brings to us the ability to create beautiful components and move a lot of business logic to hooks

Optimizing useEffect in React gives you a significant boost in performance and sometimes gets your code rid of nasty bugs.

In this article, we will take a look at useEffect React hook to fetch data from an API. We will create a sample React application to pull data from the provider and use it in our application.

We decided to build a custom hook that would load and store user preferences from local storage, so users can start with the same settings applied.

Search and filter data using React Hooks and a headless CMS. Searching and filtering data is a common feature for websites and apps, especially e-commerce.

React redux todo app tutorial : In this tutorial we will build Todo List app with animations using Framer-motion. With react-redux we will use redux-toolkit.

Let's deep dive into React Hooks and uncover the secrets to building efficient, dynamic UIs with this comprehensive guide to modern web development.

Enhance your React skills with 'The Ultimate React State Management Handbook.

What is State?

So, in the basic scenario when there are no needs in the redux, I will only use the hook itself without heavy libraries just for the small feature.

Yo guys, I want to introduce react-cool-portal. It's a React.js hook for Portals. t helps you render children into a DOM node that exists outside the DOM hierarchy of the parent component. From now on you will never need to struggle with modals, dropdowns, tooltips etc. Check the features section out to learn more. Hope you guys 👍🏻 it.

5 essential TypeScript React hooks for modern, efficient, and maintainable front-end development.

How to implement state pattern in javascript, using class implementation, then integrate it with react hooks.

Peter Norvig, the legendary Google mogul and AI titan, wrote a python essay to solve every Sudoku puzzle 10 years ago. Back then, he may not have expected that his code will inspire so many other posts and to be ported to so many different languages. For JavaScript, the latest version of the solver that I found was einaregilsson/sudoku from 2014

This essay delves into the intricacies of React Hooks, offering insights into state management, lifecycle events, and the paradigm shift they bring.

What is a React custom hook and how to build one to fetch data

React Hooks have been around since React 16.8 and remain as popular and in demand as ever. They have introduced a completely new way of handling components in React, which may lead you to reevaluate your approach to coding on a fundamental level. Having already been established as the most beloved front-end framework according to Stackoverflow popularity polls, React went above and beyond with the introduction of Hooks.

Here are some writing prompts on web development using React.

Explore how the useEffect hook affects React performance. Learn why it runs after rendering and how it can optimize your app.

I am going to show you guys how to make a basic search engine that would enable anyone to search for specific data in your table that you’ve built using any package or library in React.

Learn how to create an NPM package in 2024. Address the "Invalid hook call error", manage peerDependencies, and enable watch mode for a smooth experience.

Learn how to write reliable and professional-looking React code using "Wishful Programming" aka "Top-Down Code Design". Great for coders of all levels.

Here is mine documentation for markView: Interactive Markdown Previewer, my first React app.

Creating a Twitter What's Happening Bar Form in Reactjs including common actions such as: upload images, videos, gifs, and more.

How do you get the whole page to reload to show the updated data every time a user makes a change?

How does it feel to be a winner of Noonies 2021 as the React.js Contributor? Fantastic. Read how we intend to keep the title, our goals for 2022, and more.