How to understand the node in redux and react,input tags for beginners? Input.value =''why can this input be obtained?

import React from "react"
import { connect } from "react-redux"
import { addToCart } from "../actions/cart-actions"

let AddTodo = ({ dispatch }) => {
    let input = "";

    return (
        <div>
            <form
                onSubmit={e => {
                    e.preventDefault()
                    if (!input.value.trim()) {
                        return
                    }
                    dispatch(addToCart(input.value, 1, 250))
                    input.value = ""
                }}
            >
                <input
                    ref={node=> {
                        console.log(" value ==", node )
                        input = node
                    }}
                />
                <button type="submit">
                    
                </button>
            </form>
        </div>
    )
}
AddTodo = connect()(AddTodo)

export default AddTodo

in this code

<input
                    ref={node=> {
                        console.log(" value ==", node )
                        input = node
                    }}
                />

how do you understand this paragraph?

onSubmit={e => {
                    e.preventDefault()
                    if (!input.value.trim()) {
                        return
                    }
                    dispatch(addToCart(input.value, 1, 250))
                    input.value = ""
                }}

Why can I get the value of input.value in this function? How is this input.value passed

Apr.06,2021

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdbb52-137de.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdbb52-137de.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?