mirror of
https://github.com/apache/superset.git
synced 2026-06-03 14:49:23 +00:00
docs: wording in template (#21491)
This commit is contained in:
@@ -64,7 +64,7 @@ export default function <%= packageLabel %>(props: <%= packageLabel %>Props) {
|
||||
|
||||
const rootElem = createRef<HTMLDivElement>();
|
||||
|
||||
// Often, you just want to get a hold of the DOM and go nuts.
|
||||
// Often, you just want to access the DOM and do whatever you want.
|
||||
// Here, you can do that with createRef, and the useEffect hook.
|
||||
useEffect(() => {
|
||||
const root = rootElem.current as HTMLElement;
|
||||
|
||||
Reference in New Issue
Block a user