TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Compconv – Convert React components between function and class

1 pointsby stockkidalmost 7 years ago

1 comment

stockkidalmost 7 years ago
When refactoring or iterating, I often change React component between functional and classical ones. For instance, sometimes a component extending React.Component turns out to not require any states or methods. In that case, I rewrite it as a pure function, and vice-versa.<p>However the process is time consuming and tedious. Therefore I have automated it by making this tool. Hope it helps.