Closed twio142 closed 1 year ago
There was a afterRender function in coffeeScript that allows executing codes after the component is rendered. Is there a counterpart of such in JSX?
afterRender
Or how else can I add an eventListener to certain elements?
eventListener
Thanks in advance :)
Ah, just found a solution...
import { React } from 'uebersicht'; const { useEffect, useRef } = React;
There was a
afterRender
function in coffeeScript that allows executing codes after the component is rendered. Is there a counterpart of such in JSX?Or how else can I add an
eventListener
to certain elements?Thanks in advance :)