Inspect React source with DevTools
March 15, 2021
Why?
E.g. we need to know all the permutations of a component, but the props are not easy to modify and the source is not public.
How?
Find the component
Select the component with the element picker
Open the source
Sometimes the displayed component is not the one with the relevant props, we may need to climb up the component tree to find the correct parent.