import React from "react"; import { callAPI } from "../../../actions/API"; export const CredChecker = (props) => { const sendit = () => { let values = { hostname: document.getElementById("Host").value, username: document.getElementById("User").value, password: document.getElementById("Pass").value, }; callAPI.post("/checkcpanel/", values).then((resp) => { props.credCallback([resp, values]); }); console.log(); }; return (
); };