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

[version 2.1] - Is it possible to run without React? #192

Closed
ixdi opened this issue Dec 18, 2020 · 3 comments
Closed

[version 2.1] - Is it possible to run without React? #192

ixdi opened this issue Dec 18, 2020 · 3 comments
Assignees
Labels

Comments

@ixdi
Copy link

ixdi commented Dec 18, 2020

Hi,
We are using ketcher in our platform but we're not using React.
Is it possible to use the new 2.1 version without using React?

Thanks

@AndreiMazol AndreiMazol self-assigned this Dec 21, 2020
@AndreiMazol
Copy link
Contributor

AndreiMazol commented Dec 21, 2020

Hi @ixdi ,

React replaced Preact framework which Ketcher was originally based on. Preact is a lite version of React but it is far less popular and React based apps had to keep both React and Preact libs. Now their life is simplified a little bit.

However we are going to keep Ketcher as lightweight as possible in the future and will soon enhance its architecture by splitting onto 2 modules (see #196 for details) : the core part (including editor) and the UI controls which are currently based on React but may further be implemented based on any other framework (e.g. Angular) or your own custom controls.

This moment you can follow this instruction if you want switch back to Preact.

Sorry for temporary inconvenience. Hope you'll enjoy the new more modular architecture once it is implemented.

Best regards,
Ketcher team

@ixdi
Copy link
Author

ixdi commented Dec 21, 2020

Hi @AndreiMazol ,
Thanks for the answer!
In previous versions Preact was transparent for us but now Ketcher doesn't use an iframe so React must be loaded explicitly. We will wait for the split.
Best Regards

@AndreiMazol
Copy link
Contributor

@ixdi ,

you can use approach that bases on Iframe too. For this goal you can download this archive or (if you want to work with the latest code base) build your own package from example folder.

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

No branches or pull requests

2 participants