카테고리 없음
[React] 부모 컴포넌트에 접근하는 방법
Foo
2017. 2. 26. 18:39
728x90
this._reactInternalInstance._currentElement._owner._instance;
위 코드는 해당 컴포넌트의 부모 컴포넌트를 가리킨다.