React provids a variety of hooks developer can use. However, some developers want to make custom hook which they need in specific case. So, On this post I in…
Read more »1. useReducer useReducer is a hook that helps manage state. It's an alternative to useState. It's useful for handling complex state logic where the n…
Read more »1. forwardRef forwardRef is React hook which can allow parent component to pass HTML Element through a child component to access child's underlying DOM n…
Read more »You can get song's metadata using MediaSessionManager. Sample code: package com.twobeone.aiagent.framework import android.content.Context import android.…
Read more »1. useCallback useCallback is React Hook which prevent it from being created on every render unless its dependency changes. 2. Before useCallback import log…
Read more »