React JS Lifecycle methods

Lifecycle methods of any React component can be divided into three phases. Mounting (i.e. Birth) Updating (i.e. Grow) Unmounting (i.e. Death) These phases can be further divided into following methods. Mounting (i.e. Birth) Initialization & Construction Pre-mounting with componentWillMount() Component render() Post-mount with componentDidMount() Updating (i.e. Grow) Updating and componentWillReceiveProps() Using shouldComponentUpdate() Tapping into componentWillUpdate() Post-Render with componentDidUpdate() Unmounting (i.e. Death) Using componentWillUnmount() … More React JS Lifecycle methods

@ComponentScan vs @EntityScan

@ComponentScan is used for scanning all your components those are marked as @Controller, @Service, @Repository, @Component etc… where @EntityScan is used to scan all your Entities those are marked @Entity for any configured JPA in your application.   @ComponentScan: @Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Repeatable(value=ComponentScans.class) public @interface ComponentScan Configures component scanning directives for use with @Configuration classes. It … More @ComponentScan vs @EntityScan

What’s new in ES6

ES6 is or ECMAScript6 or ECMAScript2015 is so far the latest release in JavaScript history. The brief history of JavaScript: 1995: JavaScript is born as LiveScript, 1997: ECMAScript standard is established, 1999: ES3 comes out and IE5 is all the rage, 2000–2005: XMLHttpRequest, a.k.a. AJAX,, 2009: ES5 comes out (this is what most of us use now) … More What’s new in ES6