MCPcopy Index your code
hub / github.com/react/react / applyTextProps

Function applyTextProps

packages/react-art/src/ReactFiberConfigART.js:235–250  ·  view source on GitHub ↗
(instance, props, prevProps = {})

Source from the content-addressed store, hash-verified

233}
234
235function applyTextProps(instance, props, prevProps = {}) {
236 applyRenderableNodeProps(instance, props, prevProps);
237
238 const string = props.children;
239
240 if (
241 instance._currentString !== string ||
242 !isSameFont(props.font, prevProps.font) ||
243 props.alignment !== prevProps.alignment ||
244 props.path !== prevProps.path
245 ) {
246 instance.draw(string, props.font, props.alignment, props.path);
247
248 instance._currentString = string;
249 }
250}
251
252export * from 'react-reconciler/src/ReactFiberConfigWithNoPersistence';
253export * from 'react-reconciler/src/ReactFiberConfigWithNoHydration';

Callers

nothing calls this directly

Calls 3

applyRenderableNodePropsFunction · 0.85
isSameFontFunction · 0.85
drawMethod · 0.45

Tested by

no test coverage detected