AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Not De Optimize Tomagui
There's a couple rules basically one is spreading so like if you spread like dot dot dot props down onto a styled component that will deopt because it doesn't know what's coming in and the other thing is just any dynamic. You can kind of build things how you would normally build them with a few rules then have the compiler optimize it under the hood. There are trade-offs to using tomagui but they're not too bad as long as you avoid those sort of things. It does cost but it's not a huge cost once you add in react native and the full API set which is quite a quite a lot more.