rb

react-blocker

react-blocker

Showing:

Popularity

Downloads/wk

1

GitHub Stars

1

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

2

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

react-blocker

USAGE

You should ready this babel-plugin-transform-decorators-legacy

then....

npm install react-blocker --save


import reactBlocker from 'react-blocker';


@reactBlocker((props) => {
  // handle props and return a valid react element
  return (<div>you are blocked</div>)
})
class Example extends React.Component {

  render() {
    return (
      <div>
        hello world
      </div>
    );
  }
}

render(<Example />, document.getElementById('root'));

Or you can use object as arguments


@reactBlocker({
  componentWillMount() {},
  componentWillReceiveProps() {},
  blockFunc(props){
    return (<div>you are blocked</div>)
    // this is equivalent to the just use a function as a argument
  }
})

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial