React Rendering Strategies & API Communication

Day 14 / 21 Learning Challenge Today I learned rendering strategies in web applications and API communication in React. Study Time: 5 hours Key Learnings: • Client Side Rendering concept • Server Side Rendering concept • Differences between CSR and SSR • Axios for API requests in React • Fetching server data using useEffect and useState What I Learned Client Side Rendering means the browser builds the UI after downloading JavaScript. The server sends a minimal HTML file and React creates the interface inside the browser. Server Side Rendering means the server generates the complete HTML before sending it to the browser. The page shows content instantly and JavaScript later adds interactivity. Quick Understanding • CSR renders UI in the browser • SSR renders UI on the server • CSR works well for web applications • SSR works well for content heavy websites Axios Learning Axios is a promise based HTTP client used for sending API requests from the browser or Node.js. Advantages of Axios: • Automatic JSON parsing • Cleaner syntax than fetch • Built in error handling • Handles request and response easily Practice Done: • Learned how React applications fetch data from APIs • Practiced axios GET request example • Understood how useEffect controls API calls • Used useState to store and render API data Challenge Faced: Understanding when to use CSR and when SSR is a better choice. Solution Applied: Compared performance, SEO behavior, and use cases of both approaches. Today’s Outcome: Clear understanding of rendering strategies and API communication in React. Progress So Far: • Topics covered: HTML, CSS, JavaScript, DOM, OOP, Async JavaScript, Git, Project, React basics, Props, State, useState, React Events, Two Way Binding, Local Storage, React Fragments, CSR, SSR, Axios Biggest Learning Today: Choosing the right rendering strategy improves performance and SEO. Sheryians Coding School Sheryians Coding School Community #ReactJS #WebDevelopment #JavaScript #FrontendDevelopment #CodingJourney #LearningInPublic #21DaysChallenge #BuildInPublic

  • graphical user interface, application

To view or add a comment, sign in

Explore content categories