5 ms·
Would you mind elaborating on the TypeScript comment? Is anything broken or just suboptimal?
by bdr 11y ago
Would you mind elaborating on the TypeScript comment? Is anything broken or just suboptimal?
- seivan 11y agoIt's suboptimal and obscure. There is barely any up to date resources on it. So far I've managed to get to stuff presented on the window, but as soon as you start messing with references to the DOM components, things start to break down. It's a shame, I really think Typescript and React would be the answer to getting a decent code base. One of the cool parts, is that you get to define what your property is with static type checking and have no need to use Reacts on PropValidator. let search = new SearchBox<{ options:SearchOptions, onSearch:OnSearchHandler> }) That tells you that the SearchBox props contains SearchOptions and a delegate to call when searching I'm just starting with both React and TypeScript, so it could just be me.
- colinmegill 11y agoThe Redmond cult, closely followed by... a city I've never heard of in Japan? Toss it in the graveyard with the rest: https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS https://github.com/jashkenas/coffeescript/wiki/List-of-langu...
- colinmegill 11y agoHonestly, who cares? I'm not being mean, it's true, look: https://www.google.com/trends/explore#q=typescript https://www.google.com/trends/explore#q=typescript No one cares.
- bdr 11y agoThank you. I'd love to use these together.
- seivan 11y agoHey! I got started with Webpack and now got a decent workflow. Still figuring out the interoperability between React(JS) and TypeScript. There are some issues regarding arrays from React that don't have Typescript features, even when casted (like filter() and reduce() Not to mention the lack of JSX makes things verbose. Anyway, here's a sample code of Facebooks own tutorial. https://gist.github.com/seivan/fad1a175a5e140299fb2 https://gist.github.com/seivan/fad1a175a5e140299fb2 I REALLY love the one-way flow of data.