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

Function toString

packages/react-dom-bindings/src/client/ToStringValue.js:24–28  ·  view source on GitHub ↗
(value: ToStringValue)

Source from the content-addressed store, hash-verified

22// around this limitation, we use an opaque type that can only be obtained by
23// passing the value through getToStringValue first.
24export function toString(value: ToStringValue): string {
25 // The coercion safety check is performed in getToStringValue().
26 // eslint-disable-next-line react-internal/safe-string-coercion
27 return '' + (value: any);
28}
29
30export function getToStringValue(value: mixed): ToStringValue {
31 switch (typeof value) {

Callers 8

updateTextareaFunction · 0.90
hydrateTextareaFunction · 0.90
updateInputFunction · 0.90
initInputFunction · 0.90
hydrateInputFunction · 0.90
setDefaultValueFunction · 0.90
updateOptionsFunction · 0.90
hydrateSelectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected