How to watch store values from vuex

Posted by Andre Scott | Updated on | VueJS


Vue component’s watchers and computed values both also work on computed values. So it’s no different with vuex:

How to listen for ‘props’ changes in VueJS

Posted by Andre Scott | Updated on | VueJS


You can watch props to execute some code upon props changes:

Please explain NEGATIVE_INFINITY in JavaScript

Posted by Andre Scott | Updated on | JavaScript interview


The NEGATIVE_INFINITY is a static property in JS that results when a negative number is divided by 0. Its important characteristics are: There is no need for creating a number of objects for accessing NEGATIVE_INFINITY …

Do you know how a navbar works in the Bootstrap?

Posted by Andre Scott | Updated on | Bootstrap


Yes, Navbar works with a navigation header for the application or the website. It acts as a vital feature that helps in creating a highly responsive meta component in web applications. In addition to that, …

Is there are a difference between Foundation and Bootstrap?

Posted by Andre Scott | Updated on | Bootstrap


Yes, there is a difference between Foundation and Bootstrap. The Foundation supports the SASS processors and is mostly used for mobile UI designing purposes. On the other hand, Bootstrap supports the designing of both mobiles …

How do you create and customize thumbnails in Bootstrap?

Posted by Andre Scott | Updated on | Bootstrap


For creating thumbnails using Bootstrap, add a <a> tag with .thumbnail class around an image. It will add four pixels of padding as well as a gray border. When hovered, an animated glow outlines the …

Explain various lifecycle methods of React components

Posted by Andre Scott | Updated on | Reactjs


componentDidMount() – Executes on the client side after the first render componentDidUpdate() – Called immediately after rendering takes place in the DOM componentWillMount() – Executes immediately before rendering starts on both the client-side and the server-side componentWillReceiveProps() – Invokes …

How does the Real DOM differ from the Virtual DOM?

Posted by Andre Scott | Updated on | Reactjs


DOM Manipulation – Real DOM supports a very expensive DOM manipulation. Virtual DOM, on the contrary, has an inexpensive DOM manipulation. Element Update – Real DOM creates a new DOM when an element updates. Virtual DOM doesn’t …

Explain the Virtual DOM and its working

Posted by Andre Scott | Updated on | Reactjs


A virtual DOM is a lightweight JS object. It is simply a copy of the real DOM. A virtual DOM is a node tree that lists various elements, their attributes, and content as objects and …

What are the benefits of HOC?

Posted by Andre Scott | Updated on | Reactjs


There are several benefits of HOC, which include the following: Reuse of Code. Application of logic and bootstrap abstraction Offers a high hacking facility Supports state abstraction and manipulation It offers props manipulation

What is the relation between React and its components?

Posted by Andre Scott | Updated on | Reactjs


React, and its components are closely related. The components of React acts as the building blocks of React application for the user interface. The splitting up of this entire user interface in different small, independent, …

What are the distinct features of React?

Posted by Andre Scott | Updated on | Reactjs


The distinct features of React include the following. It uses Virtual DOM in place of Real DOM It applies server-side rendering It follows the unidirectional flow of data It is data binding

What do you understand by Props in React?

Posted by Andre Scott | Updated on | Reactjs


Prop is a contraction for Properties in React. These read-only components need to be kept immutable i.e. pure. Throughout the application, props are passed down from the parent components to the child components. In order …

Difference between prop and attr?

Posted by Andre Scott | Updated on | Jquery


Both attr() and prop() can be used to set or get an element’s value, however attr() returns the original (default) value whereas prop() returns the most recent (current) value. For example, if a text input …

Explain the Advantages of jQuery?

Posted by Andre Scott | Updated on | Jquery


The advantages of jQuery are: Simple and easy to use. Has extensive documentation in the form of blogs, code snippets, tutorials, and other resources Simple and clean syntax. Open coding standards, intuitive. Deals with cross-browser …