Home / File/ Editor.js — react Source File

Editor.js — react Source File

Architecture documentation for Editor.js, a javascript file in the react codebase. 1 imports, 1 dependents.

File javascript BabelCompiler Optimization 1 imports 1 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  893bf185_5c7b_72e5_1ff7_056d167b9a23["Editor.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  893bf185_5c7b_72e5_1ff7_056d167b9a23 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  5bd02a98_f81e_d049_4b30_df0a827f81d8["App.js"]
  5bd02a98_f81e_d049_4b30_df0a827f81d8 --> 893bf185_5c7b_72e5_1ff7_056d167b9a23
  style 893bf185_5c7b_72e5_1ff7_056d167b9a23 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import React, {Component} from 'react';

class Editor extends Component {
  constructor(props) {
    super(props);
    this.state = {
      code: props.code,
    };
  }

  render() {
    return (
      <div
        style={{
          height: '100%',
          width: '100%',
        }}>
        <textarea
          value={this.state.code}
          onChange={e => this.setState({code: e.target.value})}
          style={{
            height: '80%',
            width: '100%',
            fontSize: '15px',
          }}
        />
        <div style={{height: '20%', textAlign: 'center'}}>
          <button
            onClick={() => this.props.onClose(this.state.code)}
            style={{fontSize: 'large'}}>
            Run
          </button>
        </div>
      </div>
    );
  }
}

export default Editor;

Domain

Subdomains

Classes

Dependencies

  • react

Frequently Asked Questions

What does Editor.js do?
Editor.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Optimization subdomain.
What does Editor.js depend on?
Editor.js imports 1 module(s): react.
What files import Editor.js?
Editor.js is imported by 1 file(s): App.js.
Where is Editor.js in the architecture?
Editor.js is located at fixtures/fiber-debugger/src/Editor.js (domain: BabelCompiler, subdomain: Optimization, directory: fixtures/fiber-debugger/src).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free