docs: wording in template (#21491)

This commit is contained in:
Jakob Miksch 2022-10-07 20:21:39 +02:00 committed by GitHub
parent 35d9cb38a8
commit ca3abffb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;