Created
November 8, 2020 10:45
-
-
Save behnamazimi/7f5ec9eb31ab71ee1bc59e0cb143462c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MyComponent() { | |
const ChildComponent = (props) => {...}; | |
return { | |
ChildComponent | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyComponent { | |
static ChildComponent = ()=>{...} | |
render(){ | |
return ... | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MyComponent() { | |
return ... | |
} | |
MyComponent.ChildComponent = MyChildComponnet | |
MyComponent.SubComponent = ()=> {...} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyComponent{ | |
render(){ | |
return ... | |
} | |
} | |
MyComponent.ChildComponent = MyChildComponnet | |
MyComponent.SubComponent = ()=> {...} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment