MCPcopy Index your code
hub / github.com/SortableJS/react-sortablejs / render

Method render

src/react-sortable.tsx:83–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 1

soFunction · 0.80

Calls 1

getChildrenMethod · 0.95

Tested by

no test coverage detected