import React from "react"; import ReactDOM from "react-dom"; import { HashRouter as Router, Switch, Route, Link, useHistory, useLocation, useParams, } from "react-router-dom"; import { Header, Footer, DownModal, Login } from "../components"; import "./global.css"; import styles from "./style.less"; import { Component } from "react"; class LoginComponent extends Component { constructor(props: any) { super(props); this.state = { isSendingComponent: false, phoneNumber: "", }; } login = () => { this.setState({ isSendingComponent: true, }); // const callback = () => { // console.log(12121414); // }; // Login.LoginP(callback); }; closeLogin = () => { this.setState({ isSendingComponent: false, }); }; inputChange = (e: any) => { this.setState({ phoneNumber: e.target.value, }); }; render() { return (
{/* */}
); } } class BasicExample extends Component { render() { return (

Orcrist-Mobile Components:

  • Header
  • Footer
  • DownModal
  • login

{/* A looks through all its children elements and renders the first one whose path matches the current URL. Use a any time you have multiple routes, but you want only one of them to render at a time */}
); } } // You can think of these components as "pages" // in your app. function Home() { return (

Home

); } ReactDOM.render(, document.getElementById("app"));