lukehoban / atom-ide-flow

Atom IDE support for Flow
MIT License
87 stars 17 forks source link

Autocomplete for react components #39

Open yanivtal opened 9 years ago

yanivtal commented 9 years ago

What would it take to get autocomplete for react components based on prop types?

There's pretty great syntax for type annotating props as seen here https://github.com/facebook/flow/blob/master/tests/new_react/classes.js

It would be phenomenal to get the available props as autocomplete suggestions when typing a component. i.e after I type '<mycomponent ' i would see a list of available attributes and on every space after that until I close the tag.

nmn commented 9 years ago

@yanivtal the autocomplete feature is limited by the flow executable itself. ide-flow can't do much to solve this for you. Perhaps open an issue on the flow repo.