new 1
new 1
COMPONNETS--->FUNCTIONAL,CLASS
PROPS -->PROPERTIES OWN
HOOKS: they are the functions which uses in functional components to act like as
class components
USE LAYOUT EFFECT: it is same as use effect but it is printed before the dom is
printed on the browser,it runs synchronously.
most common use for dimension of layout.
USE MEMO : used to apply memorization in react.
it improves performance of our applications
removes unwanted functions which decreases performance
const memoCaluculation =useMemo(callback,[dependency])
USE CALLBACK useful fro functions for preventing on recreating ,rerendering.
same syntax as memo hook
returns memorize function
CUSTOM HOOKS: these are reusable function, created by user
it is used to store code and we can call it many times.
REDUX: IT IS A JS LIBRARY, FOR SIMPLIFY THE STATE MANAGEMENT TASKS
STORE,REDUCER,DISPATCH,ACTION
to synchronize data from one component to another component
redux store: where all the data in the components of applicqation stored
in js object
data flow is transparent