Hacker News new | ask | show | jobs
Advice on Creating a JavaScript Framework to End the Madness
1 points by oarabilek 914 days ago
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.

3 comments

There 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!

Hey, 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
How will you manage state?
i did, check the button code