Skip to content
Advertisement

Tag: material-ui

React – Unhandled Rejection (TypeError): e.preventDefault is not a function

I’m getting this error below when I try to implement an Axios post with react-hook-form: The problem started occuring when I added onSubmit={handleSubmit(handleSubmitAxios)} to my <form>. Basically, I want my form to be controlled by react-hook-form, using my custom handleSubmitAxios post call that communicates with my backend. This is for my sign-in component, currently just testing out the functionality of

material-ui tabs with nextjs?

I have a project in material-ui, nextjs and typescript. I’m trying to get my navbar to work with nextjs: But it causes the build to fail. Is there something I’m missing? Answer In this case, I believe you want to wrap the <Tab /> elements with the <Link /> ones.

material-ui : enable the dark mode automatically

As per the documentation: It says dark mode theme will be generated automatically and get reflected in UI, but it is not working for me. Code: Signup.js Background is not getting dark with the type. Can someone help with this? Answer My bad. The latest version of Material UI now uses mode attribute of palette to determine whether dark mode

Advertisement