-
Notifications
You must be signed in to change notification settings - Fork 350
Description
Craft.js is another page-builder framework like Grapes.js (which destack currently uses)
However, Grapes.js isn't the best fit for this project.
1. TypeScript support
Fully typing Destack isn't possible yet because Grapes.js doesn't have any (working) TypeScript support yet. There has been a community effort before, but it seems to be abandoned for now.
Craft.js has TypeScript definitions embedded in it.
2. Grapes.js wasn't made to be used with react, unlike Craft.js.
Craft.js was made to be used with react, which means maintaining the project will be easier for the future.
3. Craft.js already has a system to store the component state.
The basic example includes a feature to copy the (compressed) state to clipboard. This will make it easier to do what destack does now ( parsing the default.json, etc ).
Here's a quick guide: link
This issue exists for discussion on the topic, and for tracking the feature.