KhalfaniW / inject-react

A small module to manage injecting react components into an external website.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Goal

Inject react elements into an existing webpage. For use in browser extensions or electron apps.

How

  • Allow React to update on timer
  • Creates a sibling element to any element you want to replace.
  • It then stores the reference to the original element and the react container in a pair HTMLElementReplacementPair

About

A small module to manage injecting react components into an external website.


Languages

Language:TypeScript 94.9%Language:JavaScript 5.1%