Immutable and Mutable Values

An immutable value is the one, which is once created can never be changed. Examples of immutable vales can be numbers, string and boolean. Source element should not be affected and original element has to remain unchanged at all time. While mutable values means changing the array or modifying the value. This is not recommended.Continue reading “Immutable and Mutable Values”

Fetch API in ReactJS Projects

The most basic thing I learned after fundamantals was using APIs in ReactJS. Although not easy, it took sometime to master its concepts. There are 3 ways to Fetch data from API: Using Fetch with Lifecycle Method – componentDidMount in stateful/class component Using Fetch with useState hook in stateless/functional component Using Axios AJAX call inContinue reading “Fetch API in ReactJS Projects”