261 For React 16.8+ you can use the Effect Hook in function components: import React , { useEffect } from 'react' ; function Example ( ) {…
Read more.env variable name should start with REACT_APP_YOURVARIABLENAME REACT_APP_API_URL https://create-react-app.dev/docs/adding-custom-environment-variables/
Read moreTwilio Error ERROR Error: Uncaught (in promise): Error Error at XMLHttpRequest.onreadystatechange
ERROR Error: Uncaught (in promise): Error Error at XMLHttpRequest.onreadystatechange [as #1103 this error is coming due to the AdBlocker extension off …
Read morevoice call
import React , { useState , useEffect } from "react" ; import axios from "axios" ; const { Twilio , Device } = require ( &q…
Read morelet allConsultations = await Consultation . find ({ schedule_from : { '>=' : new Date () } })
Read moreuseEffect (() => { const handleResize = () => { if ( window . innerWidth < 680 ) { setIsSidebar…
Read morePOP Setting for hostinger setting for gMail https://support.titan.email/hc/en-us/articles/900000215626-Configure-Titan-Mail-on-Gmail SMTP https://support.…
Read moremongodump --db your_database_name --out /path/to/backup_directory mongorestore --db your_database_name /path/to/backup_directory/your_database_name exampl…
Read moreChange ownership of the directory to ensure you have the permissions to modify files within the directory sudo chown -R $USER:$USER /var/www/<your-di…
Read moreexport const getSingleTelevist = async ( televisitId : string ) => { const bearer_token = localStorage . getItem ( "auth_token" );…
Read moresudo chown -R mongodb :mongodb / var /lib/mongodb sudo chown -R mongodb :mongodb / var /log/mongodb sudo systemctl restart mongod sudo systemctl status…
Read moreecho "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list sudo apt-get update s…
Read more// Utils for date time format const formatDateAndTime = () => { const now = new Date (); // Extract date components const day = String…
Read more