Skip to content

Snap finger and wipe out half of your DOM nodes

Notifications You must be signed in to change notification settings

LookRain/Thanosjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Wipe out half of your content nodes in your DOM (div, span, h1, h2, h3, p, li, etc)

Installation

npm install --save @lookrain/thanos

Usage

import snap from '@lookrain/thanos';

onButtonClickOrSomeOtherEventsYouHave() => {
  snap();
}

in React

import snap from '@lookrain/thanos';
...

class App extends React.Component {
  render() {
    return (
      <div>
        <button onClick={snap}>Snap</button>
        ...
      </div>
    );
  }
}

export default App;

About

Snap finger and wipe out half of your DOM nodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published