UI & UX design
We are group of designers and developers sharing our expreriences and learnings on Client Side scripting and User experience design.
Axios is an HTTP client to make API calls. It is also promise based by default as in it is asynchronous. Though we can use the fetch API in react Axios provides certain benefits like cross-browser compatibility, automatic transformation of response to JSON,June 04 2020
To decide which UI elements to show or render in react is what we refer to as conditional rendering.This can be achieved by 3 ways which like writing helper functions, using ternary operators of by using simple if else conditions in render method. let us see some code examples to better understand these techniques.May 26 2020
Lifecycle methods simply are pieces of code that executed during a specific timeline of a component. for example before rendering a component logic can be added to either fetch some data from an API or we can decide to add or remove className to elements based on the prop.May 23 2020