Skip to content

Instantly share code, notes, and snippets.

@behnamazimi
Created November 8, 2020 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save behnamazimi/7f5ec9eb31ab71ee1bc59e0cb143462c to your computer and use it in GitHub Desktop.
Save behnamazimi/7f5ec9eb31ab71ee1bc59e0cb143462c to your computer and use it in GitHub Desktop.
function MyComponent() {
const ChildComponent = (props) => {...};
return {
ChildComponent
};
}
class MyComponent {
static ChildComponent = ()=>{...}
render(){
return ...
}
}
function MyComponent() {
return ...
}
MyComponent.ChildComponent = MyChildComponnet
MyComponent.SubComponent = ()=> {...}
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