hyperstack icon indicating copy to clipboard operation
hyperstack copied to clipboard

write typical react component and integrate with hyperstack

Open Jothinayagan opened this issue 3 years ago • 3 comments

There is a requirement. I wanted to code a typical react component in js and integrate it with hyperstack.

Is it really possible? I have tried but nothing works.

Any idea or suggestion?

Jothinayagan avatar Jul 29 '22 10:07 Jothinayagan

Yes, you can see how in the main documentation: https://docs.hyperstack.org/client-dsl/javascript-components#importing-javascript-or-react-libraries Hyperstack depends on React 16 though...

mpantel avatar Jul 29 '22 13:07 mpantel

Thanks for the response @mpantel . The docs that you shared shows how to use react libs. I wanted to use custom react component.

for example,

function Car() {
  return <h2>Hi, I am a Car!</h2>;
}

export default Car;

I wanted to execute this file as it is. Is there anyway to do this?

Jothinayagan avatar Jul 29 '22 13:07 Jothinayagan

@mpantel @catmando Any suggestions to integrate pure react component in hyperstack?

Jothinayagan avatar Aug 02 '22 14:08 Jothinayagan