transform-react-constant-elements hoists Composite Components (#5137) [skip ci]
This commit is contained in:
parent
c76b8eec82
commit
3871236723
@ -37,12 +37,6 @@ const Hr = () => {
|
||||
<div ref={node => this.node = node} />
|
||||
```
|
||||
|
||||
- **Composite Components**
|
||||
|
||||
```js
|
||||
const ComponentA = () => <div><MyCustomComponent /></div>;
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user