Home / Function/ renderOption() — react Function Reference

renderOption() — react Function Reference

Architecture documentation for the renderOption() function in index.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  0fcf5527_a274_5125_2165_bce0f6beb16e["renderOption()"]
  65a63c30_9cf8_cbd3_f517_fdb60be9c536["App"]
  0fcf5527_a274_5125_2165_bce0f6beb16e -->|defined in| 65a63c30_9cf8_cbd3_f517_fdb60be9c536
  180ba2a5_ca78_9a74_efcc_7a8883de46ec["render()"]
  180ba2a5_ca78_9a74_efcc_7a8883de46ec -->|calls| 0fcf5527_a274_5125_2165_bce0f6beb16e
  style 0fcf5527_a274_5125_2165_bce0f6beb16e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fixtures/concurrent/time-slicing/src/index.js lines 80–92

  renderOption(strategy, label) {
    const {strategy: currentStrategy} = this.state;
    return (
      <label className={strategy === currentStrategy ? 'selected' : null}>
        <input
          type="radio"
          checked={strategy === currentStrategy}
          onChange={() => this.setState({strategy})}
        />
        {label}
      </label>
    );
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does renderOption() do?
renderOption() is a function in the react codebase, defined in fixtures/concurrent/time-slicing/src/index.js.
Where is renderOption() defined?
renderOption() is defined in fixtures/concurrent/time-slicing/src/index.js at line 80.
What calls renderOption()?
renderOption() is called by 1 function(s): render.

Analyze Your Own Codebase

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

Try Supermodel Free