I have this code right here, that works in this online text editor: https://codesandbox.io/s/o4n0v203vy
In the npm console, everything is okay:
But in the browser, this happens:
What logs in the console, when i do export var renderTree = (node, setActiveNode, activeNode) => { console.log(node && node.type, 'look here');
I can't figure out why is this happening. Any help is appreciated! Thanks!



export var renderTree = (node, setActiveNode, activeNode) => { console.log(node && node.type, 'look here');Do you see node type?