<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/towardsdev/best-of/2022/05" -->

---
title: Best Towards Dev posts — May 2022 | daily.dev
description: The most upvoted Towards Dev posts from May 2022, curated by the daily.dev community.
canonical: https://daily.dev/sources/towardsdev/best-of/2022/05
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/towardsdev/best-of/2022/05
og:type: website
og:site_name: daily.dev
og:title: Best Towards Dev posts — May 2022 | daily.dev
og:description: The most upvoted Towards Dev posts from May 2022, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Towards Dev — May 2022

1. 1  
[](https://daily.dev/posts/react-start-losing-its-way-5m4igebvz "React start losing its way")  
Article  
![Avatar of towardsdev](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/2c710db2750a4a70835862534cb7c9d4)Towards Dev · 4y  
React start losing its way  
React developers have started complicating things, and maybe not for good. The whole Hooks concept is a foreigner to, well, anything. It does not matter do you like React or not, whether you are a junior or a senior if the technology reaches a weight so high that you will end up forced to use it.  
21  
6
2. 2  
[](https://daily.dev/posts/react-hooks--npfdi-pl "React Hooks 😍")  
Article  
![Avatar of towardsdev](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/2c710db2750a4a70835862534cb7c9d4)Towards Dev · 4y  
React Hooks 😍  
The useState hook lets us "remember" a value within a component function. Since our component function may be called many times throughout the lifecycle of the component, any variable we declare normally will get reset. With useState , React can remember a state variable for us, making sure it gets passed into our component instance correctly.  
13
3. 3  
[](https://daily.dev/posts/using-environment-variables-in-react-app-incnv-lqf "Using Environment Variables in React App")  
Article  
![Avatar of towardsdev](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/2c710db2750a4a70835862534cb7c9d4)Towards Dev · 4y  
Using Environment Variables in React App  
Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env . Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology. Never store any secrets in your React App, meaning that environment variables are embbed into React App and anyone can view them.  
13  
2

[See all Towards Dev archives](/sources/towardsdev/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/towardsdev/best-of/2022/05#page","url":"https://daily.dev/sources/towardsdev/best-of/2022/05","name":"Best Towards Dev Posts — May 2022","description":"The most upvoted Towards Dev posts from May 2022, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/towardsdev/best-of/2022/05#items","numberOfItems":3,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/react-start-losing-its-way-5m4igebvz","name":"React start losing its way"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/react-hooks--npfdi-pl","name":"React Hooks 😍"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/using-environment-variables-in-react-app-incnv-lqf","name":"Using Environment Variables in React App"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Towards Dev","item":"https://daily.dev/sources/towardsdev"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/towardsdev/best-of"},{"@type":"ListItem","position":5,"name":"May 2022"}]}]}
```

