You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unsure what exactly is going on here. It looks like the component (as a function) is being assigned as a key to the nodeName property? how do we access this, or assert against it?
if you do this:
console.log( JSON.stringify(context.nodeName) );
it returns
undefined
The text was updated successfully, but these errors were encountered:
tconroy
changed the title
setting a .defaultProps attribute on a component breaks the nodeName property of RenderContext
setting a defaultProps property on a component breaks the nodeName property of RenderContext
Mar 2, 2018
hey there,
if you do the following:
Example.js
and then try to inspect the
nodeName
property of this class instance viaRenderContext
, you get an interesting looking object like this:I'm unsure what exactly is going on here. It looks like the component (as a function) is being assigned as a key to the
nodeName
property? how do we access this, or assert against it?if you do this:
it returns
The text was updated successfully, but these errors were encountered: