Add LESS support in Creat-react-app

Right now creat-react-app supports SASS by default. So to add less support we need to eject first and then edit “webpack.config.js” file. To eject configuration run following command: And install less loader and less Now search following: And replace with Now we need to replace SASS loader with less loader. Find the following lines: in the above lines replace text […]

Install aria2 1.35.0 on CentOS

A new version of aria2 is now available and I have created the rpm for this version too. It was compiled on centos7. Download link for aria2 1.35.0 rpm is given below: gpgcheck have to be turned off because rpm is not signed. Run following command to install aria2 : Install the rpm using: You are done. Now you […]

React Hooks Main Points To Note From Documentation

useState() : Takes One argument – the initial value of variable Uses Array destructuring feature. e.g. := const [variableName, functionName] = useState(value) Where : variableName : that will be stored in state functionName: The that will be used to set the value of variableName value : the initial value of variable variableName useEffect() : The Effect Hook, useEffect, adds the […]