I made simple react functional component
According to py_react_clock example from UI Gallery
I have to import it using pega:onlyonce and pega:file name
Then use it inside React.CreateElement()
However it only works with react class-components.
Is there any way I can import and use functional component?
Thanks in advance!
***Edited by Moderator: Pooja Gadige to add capability tag***
@ChandanU5252 Thank you for your advice. I've already read that topic and didn't find an answer for my question. All info there is about react class-component, I got problems with react functional component.