skip to Main Content

Can Reactjs centerize the rest of the grid items?

Example I was try to make like the example one for tablet layout, here's my code : <div class="grid grid-cols-2 gap-8 justify-items-center px-8 mt-8 md:grid-cols-3 lg:grid-cols-4"> <div class="w-28 aspect-video bg-green-500"></div> <div class="w-28 aspect-video bg-green-500"></div> <div class="w-28 aspect-video bg-green-500"></div> <div class="w-28…

VIEW QUESTION

Can useMemo run inside useCallback?

i follow this link to handle input: const handleSearch = useMemo(() => { _.debounce(text => { console.log(text); }); }, []); const handleOnSearch = useCallback( text => { handleSearch(text); }, [handleSearch], ); but i get error: handleSearch is not a function…

VIEW QUESTION
Back To Top
Search