Hook names grabbing solution w/o changing api
a-x- opened this issue · 1 comments
a-x- commented
add to react jsx babel transformation minor version with grabber assosiated with hooks const names.
It's dead easy, I can create a demo.
const [data, updData] = useState(null);
would be something like:
const [data, updData] = useState(null);
__devtools_reportHookName(data, 'data'); // data is a pointer to some Map storage under the hook of devtools