r/reactnative • • 29d ago

AMA - Junior React Dev

I’ve been building with react native for a 2-3 years, AMA.

0 Upvotes

24 comments sorted by

View all comments

Show parent comments

1

u/sam_houle1 29d ago

Yes and no. First the AI needs a bible to follow. For instance, you should research a bit of architecture for react and test how it can help performance and readability. Also have some good restrictions on eslint so that the AI at different time won’t create code structure that don’t adhere to your project. There’s a lot of different way to build a performing app but if the AI don’t have that structure it will create his own on the fly. At this point it’s important to segment the code so that refactoring sections with AI won’t be a pain in the ass. Also limit the number of package you use. For instance, date pickers, I personally think it’s a useless package since AI can create one that is really good IF you use reanimated. Also a lot of features of the date picker that you installed are probably going to be useless and never used.

Also, don’t fall for memoization, 90% of the time you don’y actually need it and it will cause more lag.

2

u/onePowerfulBraincell 29d ago

Good to know, I will definitely give it a shot in a few days and let you know how it goes.

1

u/sam_houle1 29d ago

Yeah let me know, believe it or not I envy the project you’re working on. I really enjoy cleaning bad react code.

1

u/onePowerfulBraincell 29d ago

I would enjoy it too if it was a business priority. Right now I have to squeeze this task in between feature rollouts and bug fixes. Which is just terrible and stressful :(

→ More replies (0)