sparse-intern-71089
11/28/2021, 10:32 PMlittle-cartoon-10569
11/28/2021, 11:09 PMgreen-school-95910
11/29/2021, 10:44 AMprivate
flag is just a TS thing. It doesn't affect anything at runtime. Try the new #
prefix that is a real private field for JS
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fieldsgreen-school-95910
11/29/2021, 10:49 AMexport const componentFoo = {
propA: foo.propA,
propB: foo.propB,
};
I prefer this way, but you can try the #
field (I never tried, but I think it should work)magnificent-lifeguard-15082
11/29/2021, 11:14 AMmagnificent-lifeguard-15082
11/29/2021, 11:15 AMlittle-cartoon-10569
11/29/2021, 7:50 PMlittle-cartoon-10569
11/29/2021, 7:51 PM