3 ms·
Advice on Creating a JavaScript Framework to End the Madness
A day ago I came up with the idea of wrapping normal html and making it accessible as js :
```jsx
function onStart(){
lay = ui.createLayout('Linear','FillXY,VCenter')
btn = ui.addButton('Hello',500,100,null,lay)
ui.render()
}
//this will show an html button
```
I've built an early version of this and uploaded on github: https://github.com/oarabiledev/squidBase
I was wondering if this was a great project and worth my time to create.
- uberman 3y agohttps://imgs.xkcd.com/comics/standards.png https://imgs.xkcd.com/comics/standards.png
- turtleyacht 3y agoHow will you manage state?
- oarabilek 3y agoi did, check the button code
- Flam 3y agoThere isn’t enough in here to judge the idea fairly. At a glance I see two ideas: - a ui kit/design system wrapper so you can swap between any of them. - a different approach to laying out html elements that seems closer to canvas than html. Personally, I don’t know if these are the main problems that need to be solved. That said, it’s all a learning experience!
- oarabilek 3y agoHey, ive drafted a much more better and clearer version of what i intend to do, i intend to make this a UI framework, that simplifies everything and uses everything vannilla, no react nor vue just js in the background and vannila css