4 ms·
We were previously using RiotJs in our company. We are building huge single page application and recently moved to InfernoJS. Results have been amazing. RiotJs
by Havunen 10y ago
We were previously using RiotJs in our company. We are building huge single page application and recently moved to InfernoJS. Results have been amazing. RiotJs used to BE lagging a lot (It simply could not handle 3000 components in same way) It had really long (50ms) delays everywhere.
After moving to Inferno following things have improved:
-We are unit testing components
-Performance!!! (No delays/lagging anymore)
-es2015 syntax with JSX and inheritance
-Intellisense support in IDEs (webstorm) no custom riot syntax
- Future proof syntax without worrying low level API changes
Negative things:
-It took for a while to recode all our components in JSX
--Havunen
- leeoniya 10y ago> It simply could not handle 3000 components in same way Can you elaborate? Do you mean 3000 simultaneously in the DOM? Is this a grid/table where each cell is a component or something else?
- sangnoir 10y ago> Do you mean 3000 simultaneously in the DOM? I'm not OP, but they said "We are building huge single page application" For SPAs, it is not uncommon to use CSS to hide multiple controls (or what would otherwise be entire pages) from the user but leave it in the DOM so you can reveal them as needed. Deciding to hide a DOM subtree vs destroying & rebuilding is a performance balancing act.
- Roritharr 10y agoWhat do you consider huge? Maybe we're just slow, but we recently estimated that rewriting and launching our whole frontend in another js Framework would take a dedicated 3 Person Team atleast a year, how do you explain this cost to someone with financial responsibility, I mean the benefits are probably great, but THAT great?
- shados 10y agoThe alternative, depending on your market segment, is your competitor do it and you don't, they fall behind for a little bit, your sales grow. Then their version comes out, faster and better, and their dev team iterates faster, eventually catching up and leaves you in the dust. I've seen it happen...very recently, in a situation that ended up in large layoffs. It doesn't have to be all or nothing though. These libs are easy to keep around side by side, so you can slowly rewrite stuff as you add new features until the transition is complete.
- gedy 10y agoBenefit I saw to Riot was that my app's minimized size was one third what it was with React. And not to mention RiotJS was so much simpler than React...