reactcards icon indicating copy to clipboard operation
reactcards copied to clipboard

Inspect more stuff

Open jhicken opened this issue 8 years ago • 2 comments

The inspect prop only shows component state. It my case it would be more valuable to have inspect show props.

So I propose 2 props:

inspectState inspectProps

jhicken avatar May 19 '16 03:05 jhicken

inspectState would be really cool to have. I'm not sure about inspectProps though, because the way it works now props should either come from the state parameter that is passed to the function that renders the component or be constant. Unless you use globals. Or am I missing something? It would be great if you could give a concrete example.

steos avatar May 19 '16 18:05 steos

I agree, having a card that shows the data in, as well as the internal state would be very useful. I also thought a card showing/detailing the props and their types/schema would also be very nice to see.

a-c-m avatar May 20 '16 08:05 a-c-m