4 ms·
The main thing this is missing is HTML. Sure, you can use bootstrap across the project, but components need to have their custom CSS too. If you added HTML (o
by acoard 6y ago
The main thing this is missing is HTML. Sure, you can use bootstrap across the project, but components need to have their custom CSS too.
If you added HTML (or really JSX, but same thing more or less), it might look like:
<script>
include "MyComponentFramework.js"
page = new Page();
function handleClick() {
panel.addComponent(someComponent);
panel.rerender();
}
return
<panel>
<button on-click=handleClick className="buttonclass">
</panel>
</script>
At this point, honestly you're not far off from Nextjs. Instead of callinig `new Page()` you'd create a file in `pages/my-page-name.js`.