import { connect } from "react-redux"; import { useState } from "react"; import { actionFullRegister } from "../actions/actionFullRegister"; import { Redirect } from "react-router"; const Reg = ({ onReg, LogedIn }) => { const [login, setLogin] = useState(""); const [password, setPassword] = useState(""); return ( <>