MCPcopy
hub / github.com/facebook/react / handleVersionChange

Method handleVersionChange

fixtures/dom/src/components/Header.js:16–23  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

14 this.state = {version, versions, production};
15 }
16 handleVersionChange(version) {
17 const query = parse(window.location.search);
18 query.version = version;
19 if (query.version === 'local') {
20 delete query.version;
21 }
22 window.location.search = stringify(query);
23 }
24 handleProductionChange(event) {
25 const query = parse(window.location.search);
26 query.production = event.target.checked;

Callers

nothing calls this directly

Calls 2

stringifyFunction · 0.85
parseFunction · 0.50

Tested by

no test coverage detected