We need a UI that allows site builders to create React components without having to commit code. The code is stored in a revisionable entity that reproduces the files as data fields. Because it is revisionable and has moderation, you can always see a code history and you can control its availability.
Custom component entity - revisionable and with moderation
- JS field
- CSS field
- template field
- template type field (jsx, html, twig)
Preview button on edit form - renders the component based on the current form to the side. Much like Codepen or similar.
On view, it renders the component for inspection.
On publish, it makes the component available in the block system.
On unpublish, it makes the component unavailable, even in places it was already placed.
Export button to download a zip file with a react_block plugin module based on the code.
Comments