React return function. Can somebody explain to me why we have e here? What is that used for?

export const Registrationfaster = (InitialValues) =>{

    const [values,setValues] = useState(InitialValues)
return[ values, d=>{

````Preformatted text`

import React,{useEffect} from "react";
import {Registrationfaster} from "./Registrationfaster";

const Registration = () =>{
 const [values,handleChange] = Registrationfaster({email:"",password:""});
 return (
         <input name ="email" value={} onChange ={handleChange}/>
         <input name ="password" value ={values.password} onChange={handleChange}/>

Welcome, nanhtuan.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Your code is not correct (syntax-wise). Could you please edit it with the above in mind, to give enough code to understand the function?

1 Like

Thank you so much for your reminder

Nanhtuan, it is still unclear what code you are actually trying to work with.

Please spend some time correctly formatting the code so that it appears as it would be used.