App.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import PropTypes from "prop-types";
  2. import React, { Component } from "react";
  3. import logo from "./logo.svg";
  4. import "./App.css";
  5. const appName = "MasterControlProgram";
  6. const titleName = "heading";
  7. class Link extends Component {
  8. render() {
  9. return this.props.hide
  10. ? null
  11. : <a href={this.props.address}>Click</a>;
  12. }
  13. }
  14. Link.propTypes = {
  15. address: PropTypes.string,
  16. hide: PropTypes.bool,
  17. };
  18. const Title = ({ text }) => <div>{text}</div>;
  19. Title.propTypes = {
  20. text: PropTypes.string,
  21. };
  22. class App extends Component {
  23. state = {
  24. input: "",
  25. on: false,
  26. };
  27. render() {
  28. return (
  29. <div className="App">
  30. <header className="App-header">
  31. <img src={logo} className="App-logo" alt="logo" />
  32. <h1 className="App-title">Welcome to React</h1>
  33. </header>
  34. <Title text="Some title" />
  35. <p className="App-intro">
  36. To get started, edit <code>src/App.js</code> and save to reload.
  37. </p>
  38. <ul className="tyler">
  39. <li>First</li>
  40. <li>Second</li>
  41. <li>Third</li>
  42. </ul>
  43. <p className="button-state">{this.state.on ? "Yes!" : "No!"}</p>
  44. <button onClick={() => this.setState({ on: true })}>Click</button>
  45. <h2>{this.state.input}</h2>
  46. <input type="text" onChange={(e) => this.setState({ input: e.currentTarget.value })} />
  47. </div>
  48. );
  49. }
  50. }
  51. App.displayName = appName;
  52. Title.displayName = titleName;
  53. export { App, Link, appName, titleName };
PANIC: session(release): write data/sessions/e/0/e0641e775d0fcb03: no space left on device

PANIC

session(release): write data/sessions/e/0/e0641e775d0fcb03: no space left on device
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/session@v1.0.3/session.go:204 (0xb13e07)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:80 (0x967b75)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:114 (0x967bf6)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/recovery.go:161 (0x15baec4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/logger.go:40 (0x96b257)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:187 (0x972959)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:304 (0x973a01)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/macaron.go:218 (0x96c572)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:3311 (0x85a5cd)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:2073 (0x837f6f)
/my/cache/.heroku/go/go1.26.3/go/src/runtime/asm_amd64.s:1771 (0x493380)