Twitxy Saved

CreoWis Technologies

Verified account This account is verified. Learn more

@creowistech

Elevating Ideas with Creative Wisdom
Global creowis.com Joined October 2023
10 Following 172 Followers 620 Posts

Latest posts 5

CreoWis Technologies Verified account @creowistech
Fetch โ†’ Store โ†’ Render Pattern in React ๐Ÿ‘‡๐Ÿป

1. When the app first loads, this code runs automatically and calls a function to fetch all the conversations from the backend.

2. Once the data is received, it is passed into setConversations, which stores it in state.

3. As soon as the state updates, React re-renders the UI, so all the conversations become visible on the screen without doing anything manually.

Have you used this pattern?