React useMemo example with explanation
import React,{useMemo,useState} from “react”;import “./style.css”;export default function App() { const [state, setState] = useState(0); for(let
Web Developer | Photography | Graphic Design | Digital artwork | Photo editing
import React,{useMemo,useState} from “react”;import “./style.css”;export default function App() { const [state, setState] = useState(0); for(let
componentDidMount useEffect(() => { // will run on every render }); useEffect(() => { //
This is the parent component import React,{useEffect, useState} from ‘react’; import ‘./style.css’; import Child1 from
function Student() { this.obj = {}; this.setName = function(name) { this.obj.name = name; return this;
The following code returns 1. It is tricky but should be eye opener. export default
const theme = createMuiTheme({ overrides: { MuiOutlinedInput: { root:{ padding:’10px’, height:’50px’, } }, MuiDialogContent: {
While working on matSort if you face issue – “ERROR Error: Uncaught (in promise): HierarchyRequestError:
var text = ‘outside’; function logIt (){ console.log(text); var text = ‘inside’; }; logIt(); If
Given a function call sum(1)(2), write a function with currying and without currying. With currying