Skip to content

Posts under javascript

How to fix - this.setState is not a function error in React
How to fix - this.setState is not a function error in React
Abhishek EH | Jan 21, 2022 | 3 Min Read
Guide on why this.setState is not a function error or Cannot read properties of undefined (reading 'setState') occurs and explanation on how to fix the error in 2 different ways.
Read More
What is the !! (not not) operator in JavaScript?
What is the !! (not not) operator in JavaScript?
Abhishek EH | Jan 12, 2022 | 3 Min Read
Guide on what is not not or double bang (!!) operator in Javascript and how it can be used to evaluate the truthiness of an expression.
Read More
What are three dots (...) or spread operators in React
What are three dots (...) or spread operators in React
Abhishek EH | Jan 8, 2022 | 4 Min Read
Tutorial on what are Javascript spread operator and how to use it in React. Also explains about how to use spread operator for arrays and objects
Read More
How to fix "SyntaxError: Unexpected token < in JSON at position 0" and "Unexpected end of JSON input"
How to fix "SyntaxError: Unexpected token < in JSON at position 0" and "Unexpected end of JSON input"
Abhishek EH | Dec 23, 2021 | 2 Min Read
Tutorial on how to fix "SyntaxError: Unexpected token < in JSON at position 0" and "Unexpected end of JSON input" errors in JavaScript and React
Read More
How to add script tag to React/JSX
How to add script tag to React/JSX
Abhishek EH | Dec 19, 2021 | 2 Min Read
Tutorial on different ways to add script to a React component. Examples on methods like adding to the html, adding using useEffect and using react helmet.
Read More
How to fill an array in Javascript with initial values
How to fill an array in Javascript with initial values
Abhishek EH | Nov 5, 2021 | 3 Min Read
Guide on different ways to fill an array in Javascript with initial values. Also learn how to fill an array with incremental values (1..n)
Read More
© 2022 CodingDeft.Com