Skip to content

keyserfaty/vtrine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation details:

The pattern I'm using is:

  1. Making changes to the state
  2. If the element is present in the DOM then I will re-render it. That's been done like this:
  if (exists(downloadPreviousNode)) {
    downloadPreviousNode.parentNode.removeChild(downloadPreviousNode)
    body.appendChild(Downloads(props))
  }

Should probably come up with a better way of re-rendering but, as far as I'm concerned, if I'm trying to avoid using trees of elements I don't have much choice but to create and remove the elements from the DOM directly (which is known to be a really expensive operation for the browser).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published