Home / File/ repro-dispatch-spread-event-marks-event-frozen.js — react Source File

repro-dispatch-spread-event-marks-event-frozen.js — react Source File

Architecture documentation for repro-dispatch-spread-event-marks-event-frozen.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

// @compilationMode:"infer"
function Component() {
  const dispatch = useDispatch();
  // const [state, setState] = useState(0);

  return (
    <div>
      <input
        type="file"
        onChange={event => {
          dispatch(...event.target);
          event.target.value = '';
        }}
      />
    </div>
  );
}

function useDispatch() {
  'use no memo';
  // skip compilation to make it easier to debug the above function
  return (...values) => {
    console.log(...values);
  };
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{}],
};

Subdomains

Frequently Asked Questions

What does repro-dispatch-spread-event-marks-event-frozen.js do?
repro-dispatch-spread-event-marks-event-frozen.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in repro-dispatch-spread-event-marks-event-frozen.js?
repro-dispatch-spread-event-marks-event-frozen.js defines 2 function(s): Component, useDispatch.
Where is repro-dispatch-spread-event-marks-event-frozen.js in the architecture?
repro-dispatch-spread-event-marks-event-frozen.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-dispatch-spread-event-marks-event-frozen.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).

Analyze Your Own Codebase

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

Try Supermodel Free