Render helper rewritten in Typescript

in Ecency3 months ago (edited)

Another crucial package has been rewritten to Typescript. Render helper is what powers Ecency mobile, desktop and website content rendering. We created it 2 years ago to make sure content rendering is same across multiple apps we write (mobile app, desktop app and website) as well as across multiple devices.

ecency-render-helper-markdown-to-html

When we designed it, we had few things in mind, separate package that's easily maintainable, configurable image formatting and less repetitive work. Rewrite helps us to make consistent improvements with less bugs. One thing we noticed for sure is performance increase especially on mobile app, soon new release of mobile app will include this improvements.

Few apps already using render helper to power their apps as well. If your app does markdown rendering, check it out. I am sure you will find it very useful and perhaps you will want to contribute to it in some ways.

There are couple things we want to add like markdown to jsx that would take library to next level for Reactjs apps, content change would not re-render entire body but small portion of it. We could use some help if you are familiar with this otherwise, it is in our long list of todos.

Source code: https://github.com/ecency/render-helper
Package: https://www.npmjs.com/package/@ecency/render-helper

All this is too technical?! In short for end-user benefits are faster and unified content rendering.

Website / Desktop app / iOS app / Android app


Support Ecency, check our proposal:

Ecency: https://ecency.com/proposals/141
Hivesigner: Vote for Proposal

Sort:  

Kudos! I'm actually pleased with everything that the @ecency team has worked on all this time. I think you are the best, if not, one of the best forefront to ever render performance like this may it be on mobile or website. I know, I still have lots to explore and lots to experience, by so far... you guys are innovative!

Thank you!

Been exposed to more and more typescript lately. It's certainly a useful upgrade for existing JS code in some places.

Indeed it is, we rewrote our website ecency.com with typescript+reactjs for a reason, we certainly don't regret the decision so we converting all our tools/scripts slowly to typescript.

Still not warmed up to react.js personally but have used it in a few smaller one pagers here and there.

The "looseness" of javascript was what initially drew me to it.. But the more I learn and get deeper into the software engineer rabbit hole the more I see that might have not been a great thing to focus on learning for my initial language dive.

Thanks Ecency that exists

@ecency no doubt or at least for me All this is too technical.

Good post

!BEER
for you


Hey @ecency, here is a little bit of BEER from @eii for you. Enjoy it!

Learn how to earn FREE BEER each day by staking your BEER.