All Questions
127 questions
0
votes
1
answer
27
views
Cant't find a path for the image React styled components
I cant't find a path for the image React styled components. The path is correct I think, could it be the styled-components issue ?
https://codesandbox.io/s/soirees-ll0ehp?file=/src/App.js:120-698
...
5
votes
2
answers
3k
views
Property 'component' does not exist reactjs + materialUI + typescript?
I am creating custom typography. But while using I am getting below error.
I am following below document
https://mui.com/material-ui/api/typography/
here is my code
https://codesandbox.io/s/fragrant-...
1
vote
0
answers
618
views
Re render component after fetching searched data in Material UI autocomplete
I'm using Material UI Autocomplete to get searched data, it works fine, but it's re-render after the search runs and clears the value without focus, then we have to click again to get fetched value.
...
0
votes
0
answers
859
views
How to debounce the redux dispatch, but not the useState componenet update?
I have a simple slider component from Material-UI v4, mostly taken from this example.
I want to update the UI, both the slider and the number (which is displayed in the UI) 'instantly', but debounce ...
1
vote
0
answers
2k
views
MUI textfield with min-max inputProps not updating when using value from state
I am using a mui textfield and it works fine when I use it without hooking it upto the state but once I hook it to the state, the
<TextField
size="small"
type="number&...
6
votes
2
answers
172
views
How to change state with MUI Texfield & Redux
I have an input field where I am trying to pass some information before moving onto a separate page. My problem is the Redux state is not changing, but the console is showing the value is being passed ...
1
vote
1
answer
889
views
Dispatch action in useEffect's cleanup function
I have a form component in a Material UI <Tab /> which allows users to update their address info. The information is fetched from the API via redux-thunk and the form fields are filled with data ...
0
votes
1
answer
2k
views
Theme.breakpoints is undefined in MUI React
Whenever I try to use theme.brekpoints.up , I always encounter the same error theme.breakpoints is undefined on console. version that I am using are
"@emotion/react": "^11.9.0",
&...
2
votes
2
answers
1k
views
Shows random number enqueuesnackbar (notistack) in react js
I am using notistack package. need to show snackbar on the screen. while calling the Snack component which is using enquesnackbar it shows the snackbar but also show the random number on the screen.
I ...
0
votes
1
answer
454
views
Is it possible to use React Material UI, redux and react-form-hook together?
I am exploring several online tutorials to learn how these technologies can be used together to build React TypeScript app.
I have two specific questions:
Is it possible to use these three ...
0
votes
2
answers
307
views
Handle Dark mode in Material UI redux
I have a React app with Material UI. The dark mode basically works, but anytime I try to change the dark mode state on a page where the page is rendered from redux state data, the whole page crashes. ...
0
votes
0
answers
604
views
Redux state is updating but field and value doesn't update accordingly. Have an extra undefined field with index when EDIT.USER.VALUE is dispatched
I would like to update the state when I add multiple options in the field, so I dispatch a EDIT.USER.VALUE, it will keep tracking the changes.
But it appear an undefined field instead of updating the ...
1
vote
0
answers
99
views
Having issues in react router & navigation
I have created a navigation drawer which goes something like this,
const Minidrawer = props => {
const itemsList = [
{
text: "Home",
icon: <HomeIcon />,
...
0
votes
1
answer
245
views
React Material Table : onRowAdd not refreshing
I am using Material Table for displaying table data.
Using onRowAdd, I am able to add a new row but the page is not refershing. It reloads and get stuck then I have to reload it again.
newData =>
...
0
votes
0
answers
55
views
Redux data not accessible inside a switch
I have data that comes from MongoDB and is stored in Redux. The data is about the visibility of the components on the page. The value can either be true or false and hence I have a switch to Toggle ...