Posts

Showing posts from May, 2021

Spring Framework

Image
 Spring Framework Overview of Spring Framework A complete Java platform aimed at enterprise application development. Simpler application configuration and development comparing to other enterprise application framework like EJB. Most famous for its inversion of controller container for dependency injection. The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications. A key element of Spring is infrastructural support at the application level. Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments. Features of Spring Framework Core technologies - dependency injection, events, resources Testing - mock objects, TestContext framework Data Access - transactions, DAO support Spring MVC and Spring WebFlux web frameworks Integration - remoting, JMS, JCA, JMX Languages - Kotlin, Groovy Advant...

React Component Lifecycle and Methods

Image
  Overview Each component has several “lifecycle methods” that you can override to run code at particular times in the process. Initializing props state Mounting constructor() static getDerivedSatteFromProps() render() componentDidMount() Updating static getDerivedSatteFromProps() render() componentDidUpdate() shouldComponentUpdate() getSnapshotBeforeUpdate() Unmounting componentWillUnmount() Error Handling static getDerivedStateFromError() componentDidCatch() Life Cycle Methods Constructor() The constructor() method is called before anything else, when the component is initiated, and it is the natural place to set up the initial state and other initial values. If you don't initialized state and you don't blind methods, you don't need to implement constructor for your React component. The constructor() method is called with the props, as arguments, and you should always start by calling the super(props) before anything else. we don't use  setState() method in the constr...