Skip to content

Sampath-vi/web-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

web-components

Installation

  1. git clone [email protected]:Sampath-vi/web-components.git
  2. cd remote; npm install; npm run build; - Copy the build/static/js/main*.js path.
  3. Replace the path in host.

Directory

  • This repo consists of host and remote.
  • remote is a react-app with a simple counter.
  • host is a html file which imports the build from remote and renders it.

remote

  • This app consists of a Counter component which will be reused in the host app.
  • The Counter component just increments the state locally.
  • The app is made available to the host using custom-elements
  • The app is being rendered via this function.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published