Skip to main content

Posts

Showing posts from May, 2021

Latest Job Alert on Java Developer, React, PHP, Python, Angular developer at impetus, CIS, Yash and many IT Companies.

 Latest Job Alert on Java Developer, React, PHP, Python, Angular developer at impetus, CIS, and many IT Companies.                                               

React Code Splitting, How to improve performance of React application

In this article, I am trying to cover the following topics 1)  React Code Splitting 2)  React Lazy Loading 3)  Suspense in React 4) Error Boundary in React The React app bundled their files using tools like Webpack or Browserfy. Bundling is a process that takes multiple files and merges them into a single file, which is called a bundle. The bundle is responsible for loading an entire app at once on the webpage. We can understand it from the below example. App.js import { add } from './add.js';   console.log(add(16, 26)); // 42   add.js export function add(a, b) {     return a + b;   }   Bundle file as like below: function add(a, b) {     return a + b;   }   console.log(add(16, 26)); // 42   As our app grows, our bundle will grow too, especially when we are using large third-party libraries. If the bundle size gets large, it takes a long time to load on a webpage. For avoidi...

React High Order Component What is HOC type component in React JS:-

It is used to access the functionality of another component to the  HOC component, another component will be called a Reference on the HOC Component file. It is also known as HOC. In React, HOC is an advanced technique for reusing component logic. It is a function that takes a component and returns a new component. According to the official website, it is not the feature(part) in React API, but a pattern that emerges from React's compositional nature. They are similar to JavaScript functions used for adding additional functionalities to the existing component. A higher-order component function accepts another function as an argument. The map function is the best example to understand this. The main goal of this is to decompose the component logic into simpler and smaller functions that can be reused as you need. Example of this Create HOC.js import   React , { Component }  from   'react' ;      export   default   function   Ho...

File uploading example in Spring MVC

It is used to upload the external file under the server from the local machine, spring MVC provide Multipart Resolve class to upload the file Create Dynamic Web Project from eclipse and create dispatcher servlet and web.xml file under the project. Step1st:- Create Web.xml file <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">   <display-name>jobportal</display-name>   <welcome-file-list>     <welcome-file>index.html</welcome-file>     <welcome-file>index.htm</welcome-file>     <welcome-file>index.jsp</welcome-file>     <welcome-file>default.html</welcome-file>     <welcome-file>default.htm</welcome-file...

Latest Job Alert for Java, Angular, React and PHP Developers

Latest Job Alert for Java, Angular, React, and PHP Developers:- I  am posting some job updates for you with my professional references, you can apply according to your skills. Email and mobile are mentioned on Job Post Picture. you can share this post more to apply to other job seekers. If you are unable to get a job then it's not a company's fault, it's your mistake that means you are not prepared for industry demand. I am discussing the technical skills required to get the job below.  

React Table in React JS, How to display data on React Table

A table is an arrangement that organizes information into rows and columns. It is used to store and display data in a structured format. The react-table is lightweight, fast, fully customizable (JSX, templates, state, styles, callbacks), and extendable Datagrid built for React. It is fully controllable via optional props and callbacks. Features It is lightweight at 11kb (and only needs 2kb more for styles). It is fully customizable (JSX, templates, state, styles, callbacks). It is fully controllable via optional props and callbacks. It has client-side & Server-side pagination. It has filters. Pivoting & Aggregation Minimal design & easily themeable Installation Let us create a React app using the following command. npm install react-table npm install  styled-components --save Example 1st to implement react table using constant data and constat column Code of app.js import   React   from   'react' import   styled   from   'styled-components'...