Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write typical react component and integrate with hyperstack #439

Open
Jothinayagan opened this issue Jul 29, 2022 · 3 comments
Open

write typical react component and integrate with hyperstack #439

Jothinayagan opened this issue Jul 29, 2022 · 3 comments

Comments

@Jothinayagan
Copy link

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 Jothinayagan changed the title write core react component and integrate with hyperstack write typical react component and integrate with hyperstack Jul 29, 2022
@mpantel
Copy link
Contributor

mpantel commented Jul 29, 2022

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...

@Jothinayagan
Copy link
Author

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
Copy link
Author

Jothinayagan commented Aug 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants