INNER CODE UNIT · JavaScript

App

nicholasjackson/fake-service · ui/src/App.js:15

class App extends React.Component {

  constructor(props) {
    super(props);

    console.log(process.env.REACT_APP_API_URI);
    var baseUrl = (process.env.REACT_APP_API_URI) ? "" + process.env.REACT_APP_API_URI : "http://localhost:9090";
    console.log("API_URI: " + baseUrl);

    this.state = {
      baseUrl: baseUrl,
      url: baseUrl,
      refresh: new Date().getMilliseconds()
    };

    this.pathChanged = this.pathChanged.bind(this);
    this.goClick = this.goClick.bind(this);
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…