I have complete v4 "0:30:01"
Hooks use
-
=>false is default which I set it (hare I won't want to display the description texts so I set the state -> default false) => here setDetails is set the default value, for here it is false =>basically setDetails change the value of state => here detail word is stored the default value, for here it is false.
-
For API integration
==>>
- ##For get Id::: https://www.googleapis.com/youtube/v3/channels?key={YOUR_API_KEY}&forUsername={USER_NAME}&part=id
- ##For get PlaylistId=iploades::: https://www.googleapis.com/youtube/v3/channels?id={YOUR_ID}&key={YOUR_API_KEY}&part=contentDetails
- server side rendering={ first data load then page appear
- client side rendering={ first page appear then data come }
error always come in err.response ############################################## =========================>>>>>>>>>>>>>>
//have to import it import { useEffect } from 'react';
//have to import it from Redux import { useDispatch } from 'react-redux';
export default function Home() { //should be call the function const dispatch = useDispatch(); useEffect(() => { dispatch(getVideos()); }); return ( //body contents ); } =========================>>>>>>>>>>>>>>
export const getServerSideProps = wrapper.getServerSideProps( (store) => async (context) => { await store.dispatch(getVideos()//the function); } );
==================>>>>>>>>>>>>>> in redux
====================>>>>>>>>>>>
we use 2type of pagination 1)inline(like google) 2)loading page(like facebook/whatsApp/)
$$ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For saving content in a frontend have to use useState
=>>>>> useEffect = useMemo is use for denoting the changes in web //it only understand the changes in clientSide
=>>>
[...video,...videos] means 2 different array convert into 1 array
=>> for use redux function we have to use dispatch
=======================>>>>>>>>>>>>>>>>>>>>>>>> for responsive=>
- padding base(we used it)
- width base(bootstrap used it)
$$