i am trying to create a function with arguments and call it from another function in reactJS any help pls : errorLog(props){
        if (props.errors) {
            return (
                <div className="alert alert-danger" role="alert">
                    <p>{props.message}</p>
                </div>
            )
        }else{
            return null
        }
    }

verifyUser(){
   this.errorLog({errors: true, message: 'Sorry try something else'})

}



// this is my code but verifyUser wont work i dont know why that wont work any help pls