Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Not a major framework, but UIBuilder lets you use Web Components using JSX, just like React:

https://github.com/wisercoder/uibuilder



sort by: page size:

If you don't need Virtual DOM then Web Components are a great idea for building reusable components that work with all frameworks, including React. You can even use JSX to build Web Components: https://github.com/wisercoder/uibuilder

React can do it, and any other virtual-dom framework. Your problem is that you're looking for a framework, but these are just libraries.

If you want even more react-like web components, we built Stencil to use JSX and output plain web components as we move to WC's for Ionic Framework: http://stenciljs.com

React is not a framework.

It is a fancy HTML templating library first and foremost and you should use it when you need HTML templates, which means you that can use as little or as much of it as you want.

I’ve built mostly static pages with React loaded and embedded into parts of the page. The webpages would function without JavaScript enabled.


Thanks! So is react the only JS framework you use now (besides jQuery)?

I referenced my framework further down the thread as well, but repeating it here since you specifically ask for ease-of-use and React. Please try out Concur-JS which is my async-gen based UI framework that is React based, and designed to be extremely easy to get started with. https://github.com/ajnsit/concur-js

Here's the perfect React replacement for you: https://github.com/wisercoder/uibuilder

It is a 200-line library, and you get React's templating technology, which is the best part of React. You can use jQuery for updating the screen.


Yes, and the MVC framework is all of 500 lines of code and can be used with React too: https://github.com/Rajeev-K/mvc-router

well there is also React.NET which actually can use razor pages to include react components. pretty neat. also there is blazor which works with websockets and pushes html to clients.

I really like webcomponents, but they still statefully update the UIX, just like most native ui frameworks.

React solves this by giving a declarative functional approach to webdevelopment.

Would it be possible to combine both react with webcomponents? If so, are there any demo"s out there? I couldnt find anything.


There are plenty of libraries that let you do declarative react templating for web components. I work on LitElement & lit-html, and there are other project list StencilJS. They both let you use fast and convenient libraries to build the component while retaining the native interop of web components.

I am not familiar with this library, but if it does what it should then ofcouse is bigger, with react you just get a way to render divs and spans on screen, a GUI framework would give you say a DataGrid component with sort able columns and some advanced optimizations like windowing (aka a grid with 1 million rows will use same resources as a small DataGrid because it will only create enough DOM elements for the visible part and then recycle stuff).

JS devs that did not used Desktop or Mobile GUI tolkits have no idea what is missing in the browser.


Actually, it's not that hard to build a UI Builder for React. Just output normal HTML, then transpile to JSX. For method handlers, transform into Redux actions. And you've done.

It's fairly simple to piece together a framework with React. I'm using React, Flux, React-Router and Superagent.

Can you speak of your experience with liveviewjs? I've been looking at it, and htmx, and everything else, over the past few months for a heavily-interactive frontend project I need to start.

I'm an experienced ios dev, but in at the deepens with all this js frontend stuff. There are so many options! The one thing I'm sure of is I don't want to use react.


Well you can, but the point of React is to abstract the view from the platform, not much more.

You can use something like Solid or JSX lite to maintain standard components that are compatible with most of those frameworks and web components.


You can use Backbone and Knockout with React. React is not a framework per se. It just makes things less complex.

I'd encourage you to read this article if you haven't done it yet: jlongster.com/Removing-User-Interface-Complexity,-or-Why-React-is-Awesome


Which framework (or non) are you using, if not react? Just curious, or what would be a better (web related) base?

You're not looking to do web development - you're looking for a pre-assembled UI library.

React isn't that. That's fine - it's not supposed to be.

Hell Angular isn't that... but as it's a framework (React really isn't it's a View library) it has more of that. Angular + Bootstrap probably does most of what you would want...

... but it's an extremely narrow need. Not a general case.

next

Legal | privacy