All Questions
3 questions
2
votes
1
answer
659
views
React + Material UI - Best way to prevent child tree from remount when toggling parent theme
Background
I wanted to follow Material UI's implementation of toggling UI's dark/light mode theme. Link.
I have encapsulated its implementation into a custom hook that returns theme-related properties ...
0
votes
2
answers
2k
views
Unable to display the data by using useEffect hook inside MaterialTable
import React,{useEffect, useState} from 'react';
import MaterialTable from 'material-table';
import axios from 'axios';
// function for adding the
export default function MaterialTableDemo() {
...
0
votes
1
answer
2k
views
React hook with Material UI
I am trying to use code from material ui and am getting this error:
Invalid hook call. Hooks can only be called inside of the body of a function component.
This could happen for one of the following ...