Andrei Luca

Results 98 comments of Andrei Luca

https://github.com/FortAwesome/vue-fontawesome/issues/293#issuecomment-846915582

This is how I import `jquery`, `bootstrap` and `popper` in CRA. Need to install `exports-loader`. Usually I do this in `index.js` if more components require them ```javascript import jQuery from...

Some helpful notes: Webpack for example uses JSX as configuration https://webpack.js.org/configuration/configuration-languages/#babel-and-jsx They use this JSX factory https://github.com/developit/jsxobj

For referencing constructs between them a ref can be used I think ```tsx export default function MyApp() { const fooBar = useRef() return ( ); }; ```

Started to do some experiments related to this RFC https://github.com/iamandrewluca/constructs-jsx/blob/main/index.js https://github.com/iamandrewluca/constructs-jsx It basically works, but we need a way to write also imperative code. ps: I don't have too much...

One more attemp creating a custom renderer because we still need to write somehow imperative code. https://github.com/iamandrewluca/react-constructs https://github.com/iamandrewluca/react-constructs/blob/3762ec26b1112fc835446b09db3ec9abdea68668/lib/hello-cdk-stack.tsx#L23-L42 There are some problems, waiting for an advice from react team. https://github.com/facebook/react/issues/13006#issuecomment-962248894...

it seems that a custom renderer it's too compicated, and I't may not work. I went back to implementing own jsx-runtime, render, useRef, and useLayoutEffect. https://github.com/iamandrewluca/constructs-jsx/blob/2f2b8adbd763de713156b41f4e7818d5b95889d9/index.js#L98-L140 Will make a POC...

``` PASS test/constructs-jsx.test.tsx ✅ SQS Queue Created (72 ms) ✅ SNS Topic Created (27 ms) ``` remained to improve TypeScript support, and publish it. Would be `react-cdk` good enough? Action:...

**An update:** Implementing TypeScript support is not fully possible at the moment if we want to use directly `Construct` as a component. To tell TS how to infer a `Construct`...

@eladb yes, I'm in. I will need some giudance. One more thing. Using JSX there is one limitation. Because `key` and `ref` are special props, they cannot be in the...