skip to Main Content

Can Javascript useNavigate from root directory?

I'm trying to redirect a user after they click on a text with useNavigate, the route that i'm trying to use is "behind" the current route whereas useNavigate redirects "forward". code: <span onClick={() => navigate(`portfolio/${user}`)} className="text-orange-400 cursor-pointer" > {profile?.name} </span>…

VIEW QUESTION

?

I got a problem userData.map is not a function TypeError: userData.map is not a function error Try changing again, error still doesn't improve I encountered a problem userData.map is not a function TypeError: userData.map is not a function I tried…

VIEW QUESTION

How to format currency input in ReactJS?

I want to format currency as 1,456,567.545 and here is my code export const formatCurrencyNumberWithDecimal = (value) => { if(value){ const cleanedValue = value.replace(/,/g, ''); // Remove existing commas const parts = cleanedValue.split('.'); const integerPart = parts[0].replace(/D/g, ''); const decimalPart…

VIEW QUESTION
Back To Top
Search