Advertisement ยท 728 ร— 90

Posts by Ayobami Ogundiran ๐Ÿ‘‹

I really appreciate your input. Okay, that is a great point. Thank for the input.

1 year ago 1 0 1 0

Yet, another implementation details.

Regular html is not a reusable component but this one is. You can't encapsulate regular html, you can encapsulate this one.

Then it is not html.

It is built on html which is a core part of the web making it a web component.

It is a web component as a concept.

1 year ago 0 0 1 0
Post image

If it can do what we have here, it is a web component as far as I am concerned.

1 year ago 0 0 1 0

I know what it means as someone who has worked with it. I used it knowing fully well people using web component would want to disagree.

All arguments I have received are all about implementation details but not the real concepts.

If it works directly in the browser, it is a web component.

1 year ago 0 0 1 0
JSXMenu

I followed this JSX specifications to make it work.

facebook.github.io/jsx/

Though it uses web standards, it operates like JSX.

Maybe we'll all know what to call it later. My focus now is to make it the best of both worlds โ€” web component and JSX.

Or is it qualified to be a web component?

1 year ago 0 0 1 0

It output html strings that land in the DOM and are re-renderable just like in JSX and probably with the most efficient state management for the frontend.

It meets all JSX criteria.

Or what is the standard definition of JSX?

1 year ago 0 0 1 0

You're right but I believe my approach will be baked into browsers in the future just like jQuery once it proves its superiority.

But for now, you're right.

1 year ago 0 0 0 0

It works everywhere even on the servers or any platform that uses JavaScript/Typescript because it has no syntax of it own.

It uses vanilla JavaScript.

That means, it is vanilla JavaScript. Since Angular and Vue are JavaScript frameworks, it works with them.

I will create demos with them soon.

1 year ago 1 0 1 0
Advertisement

No, this JSX is different. What we know currently as the web component is way "hackier" than this.

1 year ago 0 0 1 0

Don't forget, we have to go with the current implementation details of web component because it was the only possible way to do

Now, I have built JSX interpreter that works in browsers.

So there is another way to do it to achieve all the functionalities of the web component in browsers and servers

1 year ago 0 0 1 0

I see your point.

You're saying the custom component won't reflect in the DOM.

But judging from the fundamental description from the MDN, web component is about reusability, encapsulation and co.

What you referenced is the current implementation details of web component.

Koras.jsx is another.

1 year ago 0 0 2 0
Post image

But it is an encapsulated, reusable component just like it is described here.

You can use it like <Articles articles=${article} />. Isn't this a custom element?

It works directly in browsers with *no build step*.

The web component we have today is just an implementation of this description.

1 year ago 0 0 1 0
Music Player A LovePlay web music player

It doesn't, it leverages the DOM to use JSX.

I am working on its docs but you can check the stuff I built with it.

Blog โ€”
Demo: codingnninja.github.io/sapablog

source: github.com/codingnninja...

Music player โ€”
Demo: codingnninja.github.io/lovePlay

source: github.com/codingnninja...

1 year ago 0 0 1 0
Post image

"Web Components are a set of web standards that allow developers to create reusable, encapsulated, and self-contained custom elements for web apps"

If that is true, can we say koras.jsx is a web component? It would probably outlive your *web Component* ๐Ÿ’ฏ

1 year ago 0 0 2 0
Post image

So JavaScripty โœ…

We can memoize components in koras.jsx.

Any flaw here?

1 year ago 1 0 0 0

React doesn't render itself. You make it so ๐Ÿ˜‚

1 year ago 0 0 0 0

Even your job becomes enjoyable when it is all this and no one needs to push you to do what you love to do.

The secret to doing a great job is to love what you do.

1 year ago 0 0 0 0

Programming is fun if you don't make it about the code.

It is about the lives to change, money to make, relationships to form, pleasure to experience, kids to protect and people to educate.

Everything becomes fun ๐Ÿคฉ

1 year ago 0 0 1 0
Advertisement

For example,

// manage a and b state
function add(a, b) {
return a + b;
}

// first state
const five = add(2, 3);
// another state
const four = add(2, 2);

The function helps us manage the changes โ€” the state of a and b โ€” to get expected result.

1 year ago 0 0 0 0

When you understand better, you will realize programming is basically state management ๐Ÿคฉ.

I mean programming is about processing data passed to your application.

It is determining what changes, setting suitable environment and co., making sure it syncs with the rest of the app without issues

1 year ago 0 0 1 0

It is fun rendering and re-rendering JSX with vanilla JavaScript using koras.jsx. ๐Ÿคฉ

1 year ago 0 0 0 0