Skip to content

Files

Latest commit

 

History

History
42 lines (26 loc) · 701 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 701 Bytes

Phase K

add options

Steps

Setup types for options

Setup context to pass around options

This is not required in all react renderers and some react renders use other strategies to pass around options

Add dev tools support

This can be accomplished by adding the following in the render function

reconciler.injectIntoDevTools({
  bundleType: Number(dev) as BundleType,
  rendererPackageName: pkg.name,
  version: pkg.version
});

Interesting Files

src/elements/BaseElement.ts

src/context.ts

src/dev.ts

src/render.ts

src/types.ts

Usage

npm run start