NKNikhil KumarJul 30, 2020
Passing non javascript object in Provider of useContext hook.
My react class is accepting an external object(COM window) as props, which is then passed to child elements. Instead of using prop drilling I am using useContext() hook to deliver prop where it is required. <sampleContext.Provider value={nonJavascrip...
Join discussion