Joe Lencioni

Results 248 comments of Joe Lencioni

I am happy to get TypeScript set up in this project, but I don't want to force it on you here. Let me know when you are ready to give...

It is possible to use typescript in regular js files by adding type annotations in jsdoc comments. It's a bit clumsy and not quite as full featured, but would work...

It looks like Linaria can be configured to use PostCSS as a [custom preprocessor](https://github.com/callstack/linaria/blob/master/docs/BUNDLERS_INTEGRATION.md#options), and there are PostCSS plugins like [postcss-rtl](https://www.npmjs.com/package/postcss-rtl) to do RTL transformations. I haven't tried it, but...

I believe that code is part of the react repo: https://github.com/facebook/react/blob/1f5ce59dd7b6869b1a17ede65aa301002ef31d4b/packages/shared/ReactSymbols.js#L21-L24

@TikiTDO Thanks for your work on this so far! I am working in a codebase that we are trying to convert completely to TypeScript, and I think this PR might...

I've built this version and pushed it up here so I could more easily install it and try it out in my codebase: https://github.com/lencioni/babel-plugin-preval/commit/cd9e6d0daebc2b3996fc88927b71f8ab8edcdc50 I installed it by running ```...

Yeah, those two plugins are one of the combos I tried, but got the same result. This is my entire file that I'm testing it on: ```ts // @preval import...

And of course array destructuring could be done similarly: ```jsx ``` becomes ```js React.createElement(Foo, (_bar = bar(), { second: _bar[1], third: _bar[2], baz: true })); ```

And assigning to new variable names: ```jsx ``` becomes ```js React.createElement(Foo, (_bar = bar(), { fizzy: _bar.fizz, buzzy: _bar.buzz, baz: true })); ```

Debounce might help. Also when you are looking into this, make sure to see what it looks like when using this hoc in a bunch of places in different parts...