Skip to content

polovi/react-stack-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-stack-view

StackView component for react

Installation

npm install react-stack-view

Usage

import React, {Component} from 'react';
import StackView from 'react-stack-view';

class MyComponent extends Component {
  add() {
    this.refs.stack.push(<div></div>);
  }

  remove() {
    this.refs.stack.pop();
  }

  replace() {
    this.refs.stack.replace([<div></div>]);
  }


  render() {
    return (
      <StackView ref="stack">
        [optional default content]
      </StackView>
    );
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published