-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add MIGRATING.md - advice for people migrating from Flow/JS to TS #79
Conversation
Millie from Tiny here. I'm not sure if/where you might want to add these but here's some links:
I'll have a look through all this and see if there's anything we can add too! |
yay millie! yes i was specifically planning to include your talk once it was up. i'll add your links, other tips and pointers welcome |
Slack has also migrated to TypeScript a while ago, I think they were the ones who convinced me to convert :) |
I've just finished a migration from flow to TS at my company (travelrepublic.co.uk - only part of the mobile site affected) and here are a few things that came out of that work:
Let me know if you have any questions about it and I'll try to answer them! |
Hey @braposo this is super awesome! I've been meaning to write a clearer/better guide for HOCs. can you give a simple example of a kind of HOC pattern that you struggled with? either just as a standalone TS HOC pain point, or a pain point converting a Flowtyped HOC to a TS HOC. |
Today I talked with one of Passable maintainers and he wasn't that happy with flow so he suggested for me to write a typings for passable to improve the Developers experience even in JS files. Maybe one day Passable may adapt TypeScript instead of flow in the source in addition to the package definition 😃 Here's the PR -> fiverr/passable#106 |
@sw-yx I'll create a new issue to address the HoC, there were already some comments that I wanted to make anyway so I'll just explain a bit more what we are doing. Thanks! 👍 |
alright releasing this thing for now, PR's and issues still welcome for Flow -> TS tips and stories |
update from 2021
you can find the current cheatsheet here: https://react-typescript-cheatsheet.netlify.app/docs/migration/intro
Migrating (to TypeScript) Cheatsheet
This Cheatsheet collates advice and utilities from real case studies of teams moving significant codebases from plain JS or Flow over to TypeScript. It makes no attempt to convince people to do so, but we do collect what few statistics companies offer up after their conversion experience.