()
| 81 | } |
| 82 | |
| 83 | render(): JSX.Element { |
| 84 | const { tag, style, className, id } = this.props; |
| 85 | const classicProps = { style, className, id }; |
| 86 | |
| 87 | // if no tag, default to a `div` element. |
| 88 | const newTag = !tag || tag === null ? "div" : tag; |
| 89 | return createElement( |
| 90 | newTag, |
| 91 | { |
| 92 | // @todo - find a way (perhaps with the callback) to allow AntD components to work |
| 93 | ref: this.ref, |
| 94 | ...classicProps, |
| 95 | }, |
| 96 | this.getChildren() |
| 97 | ); |
| 98 | } |
| 99 | |
| 100 | private getChildren() { |
| 101 | const { |