MCPcopy
hub / github.com/BuilderIO/mitosis / componentToPreact

Function componentToPreact

packages/core/src/generators/react/generator.ts:168–174  ·  view source on GitHub ↗
(
  reactOptions = {},
)

Source from the content-addressed store, hash-verified

166 | 'forwardRef';
167
168export const componentToPreact: TranspilerGenerator<Partial<ToReactOptions>> = (
169 reactOptions = {},
170) =>
171 componentToReact({
172 ...reactOptions,
173 preact: true,
174 });
175
176export const componentToReact: TranspilerGenerator<Partial<ToReactOptions>> =
177 (reactOptions = {}) =>

Callers 2

generateCodeFunction · 0.85
getOutputGeneratorFunction · 0.85

Calls 1

componentToReactFunction · 0.85

Tested by

no test coverage detected