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

Can you create React components? #57

Open
vizardkill opened this issue Feb 16, 2022 · 3 comments
Open

Can you create React components? #57

vizardkill opened this issue Feb 16, 2022 · 3 comments

Comments

@vizardkill
Copy link

Is it possible to develop custom components with React, to use Hooks like useState, useEffect and useContext?

@thanhtunguet
Copy link
Owner

Is it possible to develop custom components with React, to use Hooks like useState, useEffect and useContext?

I have no idea how to implement custom components for GrapesJS using React hooks right now. However, using JSX to creating custom components might be possible.
What do you think?

@vizardkill
Copy link
Author

In theory it works for static components, but for example if we want to develop components that bring you information, for example about a product, or information

@thanhtunguet
Copy link
Owner

In theory it works for static components, but for example if we want to develop components that bring you information, for example about a product, or information

I have not used this library for years. If you have an idea, please contribute to this lib by opening a pull request. I'll review, test and merge and submit new version for new feature.

Thank you

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