Enforce component name
Summary: When snapshotting, do not get affected by the building process. Reviewed By: rafeca Differential Revision: D8638527 fbshipit-source-id: 8335fc55c0c85f2ff110db338a5000c7af4b29aa
This commit is contained in:
parent
fb2ec1ea47
commit
14cd15ef54
|
@ -17,6 +17,8 @@ module.exports = (moduleName, instanceMethods) => {
|
||||||
typeof RealComponent === 'function' ? RealComponent : React.Component;
|
typeof RealComponent === 'function' ? RealComponent : React.Component;
|
||||||
|
|
||||||
const Component = class extends SuperClass {
|
const Component = class extends SuperClass {
|
||||||
|
static displayName = 'Component';
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const name =
|
const name =
|
||||||
RealComponent.displayName ||
|
RealComponent.displayName ||
|
||||||
|
|
Loading…
Reference in New Issue