Learn ReactJS & React Native With Me
  • Home
  • React Native
  • React Js
  • Write for us
  • Animal Welfare
  • Contact
  • Home
  • React Native
  • React Js
  • Write for us
  • Animal Welfare
  • Contact
  • Facebook
  • Twitter
  • LinkedIn
  • Email
Learn ReactJS & React Native With Me

Code, Bugs, Pitfalls, Tricks of React Js & React Native

  • Home
  • React Native
  • React Js
  • Write for us
  • Animal Welfare
  • Contact

akamit

331 posts
I am Akash Mittal, an overall computer scientist. If you want to guest post, need help in your projects, want to advertise, Feel free to contact me at [email protected]
How to find the longest string in javascript array?
  • JavaScript
  • 1 minute read

How to find the longest string in javascript array?

  • akamit
  • January 4, 2021
To find the longest string in javascript array, we need to loop through all the elements and compare their lengths. The one which has the maximum length is the longest.…
View Post
How to remove duplicate objects from array in JavaScript?
  • JavaScript
  • 2 minute read

How to remove duplicate objects from array in JavaScript?

  • akamit
  • January 3, 2021
(Jump to Code | Demo) In order to find the duplicates, we need to compare two values. In case of numbers and strings, this is very simple. But when it…
View Post
How to remove duplicate elements from array in JavaScript?
  • JavaScript
  • 1 minute read

How to remove duplicate elements from array in JavaScript?

  • akamit
  • January 2, 2021
In this article we are going to create a function to remove duplicate elements from javascript array. Our function will be able to handle strings and numbers inside the provided…
View Post
How to remove first element from array in javascript
  • JavaScript
  • 1 minute read

How to remove first element from array in JavaScript?

  • akamit
  • January 2, 2021
When we remove an element from array, a null or undefined remains in its place. One of the option is to use removeNullUndefinedEmptyFromArray() function to clean the array. But if…
View Post
How to force component to re-render in reactjs
  • React Js
  • 2 minute read

How to force component to re-render in reactjs?

  • akamit
  • January 2, 2021
There are two ways in which we can force component to re-render in React JS. Generally, we require this when there is change in the list but react fails to…
View Post
remove null, undefine and empty values from array in javascript
  • JavaScript
  • 2 minute read

Remove null, undefined and empty values from array in JavaScript

  • akamit
  • January 1, 2021
In this article we are going to learn how to remove null, undefined and empty values from array in Javascript. We get null or undefined values in array when we…
View Post
can't perform a react state update on an unmounted component
  • React Js
  • React Native
  • 2 minute read

Can’t perform a react state update on an unmounted component – Code

  • akamit
  • December 31, 2020
(Jump to Solution | Code | Demo) There are number of situations when you get the warning, “Can’t perform a react state update on an unmounted component“. One thing is…
View Post
combine and merge two javascript objects
  • JavaScript
  • 1 minute read

Combine two javascript objects – Code Example & Live Demo

  • akamit
  • December 30, 2020
(Jump to Code | Demo) We can combine and merge two javascript objects using triple dot (…) notation of ES6. This is a very handy feature as it allows to…
View Post
Open file upload dialog using javascript
  • JavaScript
  • 2 minute read

Open File Upload Dialog Using JavaScript – Code Example & Live Demo

  • akamit
  • December 31, 2020
(Jump to Code | Demo) When we design an application, we get the requirements to upload images, pdfs, videos and all other sorts of files. We do this using html…
View Post
change position of element in array using javascript
  • JavaScript
  • 1 minute read

Change position of element in array using JavaScript code example

  • akamit
  • December 29, 2020
We can use splice() method to move an element of an array from one position to another in javascript. We will use latest coding principles of JS (ES6). Check the…
View Post
javascript date_format like php
  • JavaScript
  • 5 minute read

JavaScript date_format() function – Convert datetime like Php

  • akamit
  • December 29, 2020
Php has a date_format() function which can convert the datetime into any custom format. But sadly javascript do not have any such thing. So, we have implemented one for it.…
View Post
convert javascript object to formdata for post request
  • JavaScript
  • 1 minute read

Convert Javascript Object into FormData for POST request

  • akamit
  • December 19, 2020
There are many ways to send data from html form to backend through POST request. Out of them, the primary way is FormData. This is ideal when you have simple…
View Post
convert object to array in javascript to use in for loop
  • JavaScript
  • 2 minute read

Convert Object to Array in JavaScript to use in for loop

  • akamit
  • December 29, 2020
To convert JavaScript object to array, we can use two functions – Object.keys() and Object.values(). Suppose, our javascript object is – Now, if you want to for loop through this…
View Post
top 10 javascript linter libraries
  • JavaScript
  • 3 minute read

Top 10 linter for javascript to help you write clean, error free code

  • akamit
  • December 29, 2020
In this article I am going to list top 10 linter libraries for javascript. Linter makes your code readable and error free. They prettify and inform you about your syntax…
View Post
javascript array splice() add remove values auto adjusting size
  • JavaScript
  • 2 minute read

JavaScript Array Splice() – add / remove values at any position

  • akamit
  • December 29, 2020
To add or remove values from any position of an array in JavaScript, we can use splice() function. Here is the code – This function has 2 required parameters and…
View Post
mysql timestamp - the right way to store datetime in tables
  • MySql
  • 2 minute read

MySql Timestamp – Right way to store datetime in tables

  • akamit
  • December 29, 2020
I struggled with the issue of storing date and time in database for a long time. Due to different time zones in the world, it is very hard to get…
View Post
football game crud application using javascript and localstorage
  • JavaScript
  • 24 minute read

Football Game CRUD Application in Javascript & LocalStorage

  • akamit
  • December 17, 2020
In this application we are not going to use any backend. Instead, we will use browser’s localstorage as our database. We will learn CRUD principles by developing football game application…
View Post
Twitter CRUD application using react php mysql
  • MySql
  • Php
  • React Js
  • 6 minute read

Twitter CRUD application in React, Php & MySql in 10 Minutes

  • akamit
  • July 24, 2022
All applications have 4 operations – Create, Read, Update and Delete. We call them CRUD. In this guide, we will create a “Twitter Feed” CRUD application using React, Php and…
View Post
learn react navigation in 10 minutes
  • React Native
  • 5 minute read

React Navigation in 10 Minutes – A Quick and Complete Guide

  • akamit
  • December 8, 2020
React Navigation is used to navigate between app screens. It is nearly similar to websites where we click on links to open different pages. In this guide, you will learn…
View Post
top 10 react bootstrap components
  • React Js
  • 3 minute read

Top 10 React Bootstrap Components For Every Project

  • akamit
  • December 29, 2020
React bootstrap is the frontend components library which is inspired from twitter bootstrap. Let us see 10 components of bootstrap which are very useful in any kind of project. 1.…
View Post

Posts navigation

Previous 1 … 15 16 17 Next

Tweets by ARMITTAL
  • Bootstrap (1)
  • Carbon (12)
  • Code Example (97)
  • Cryptocurrency (3)
  • Docker (16)
  • Git (1)
  • HTML-CSS (1)
  • Japanese (1)
  • JavaScript (18)
  • Kubernetes (15)
  • MySql (2)
  • Php (1)
  • React Js (20)
  • React Native (14)
  • Technology (2)
  • Troubleshoot (1)
  • Uncategorized (1)
  • Wordpress (2)
  • [Code Example] ReactDOM.render no longer supported. Use createRoot
  • [Code Example] Docker desktop stopped error solution
  • [Code Example][R-lang] Zero padding to numbers in column str_pad
  • [Code Example] fatal: detected dubious ownership in repository at ‘…’ git
  • [Code Example] Unrecognized command “link” React Native
  • [Code Example] ‘WebDriver’ no attribute ‘find_element_by_css_selector’
  • [Code Example] PlatformException(Unable establish connection channel)
  • [Code Example] npm WARN config `–global`, `–local` are deprecated
  • [Code Example] How to create progress bar using bash script
  • [Code Example] Convert hex color to RGB & RGB to hex using bash script
  • [Code Example] Create nameref for accessing variable from another bash
  • [Code Example] Get content between two substrings using bash script

array bash bootstrap carbon-language containers create react application CRUD docker docker containers docker images Error git short html html short javascript javascript error javascript short java short kubernetes live demo python python-short python dictionary python error python list python numpy python pandas python string React-Native react-native-short react component reactjs reactjs error react js short react native animation react router react state R Short shell solidity students svelte error svelte short top list ubuntu

cannot import name 'to_categorical' from 'keras.utils' python tensorflow error
  • Python
  • 1 minute read

cannot import name ‘to_categorical’ from ‘keras.utils’

  • July 30, 2022
pip is being invoked by an old script wrapper python error
  • Python
  • 2 minute read

pip is being invoked by an old script wrapper

  • July 30, 2022
Python Poetry could not find pyproject.toml file
  • Python
  • 1 minute read

Poetry could not find a pyproject.toml file

  • July 30, 2022
python run bash script in background
  • Python
  • 2 minute read

python run bash script in background

  • July 30, 2022
Learn ReactJS & React Native With Me
Copyright AkashMittal.com

This blog's earnings goes for Animals

Learn More
X