Skip to content
Advertisement

Tag: next.js

how to use value of useState after init it

I these state hook: my medicalProblem variable will initial with response of a api : but I got this error: Answer There are a couple ways to accomplish this, but the easiest may be creating another useEffect hook that depends on the medicalProblems array as seen below! That extra hook will make sure your medicalProblems are populated before proceeding to

Change default color of button in Next.js

I am having a problem changing default color of buttons in Next.JS Web Application. It’s button text color is grey when I see it in google chrome in Desktop, but looks blue when I open it using my Mobile chrome browser. I want to make the button text color as grey in both of them. The way of customizing the

Advertisement