import PropTypes from "prop-types"; import React, { Component } from "react"; import logo from "./logo.svg"; import "./App.css"; const appName = "MasterControlProgram"; const titleName = "heading"; class Link extends Component { render() { return this.props.hide ? null : Click; } } Link.propTypes = { address: PropTypes.string, hide: PropTypes.bool, }; const Title = ({ text }) =>
To get started, edit src/App.js
and save to reload.
{this.state.on ? "Yes!" : "No!"}