panel.jsx

4.0.0 • Public • Published

panel.jsx

React Panel component

Installation

$ npm install panel.jsx

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import Panel from 'panel.jsx';
 
class App extends React.Component {
 
  render() {
 
    var rows = [
      {href: '#', text: 'Dog'},
      {href: '#', text: 'Cat'},
      {href: '#', text: 'Horse'}
    ];
 
    return (
      <div>
        <Panel title="Animals" rows={rows} />
      </div>
    );
  }
 
}
 
ReactDOM.render(<App />, document.getElementById('react'));

Test

$ make test

License

MIT

/panel.jsx/

    Package Sidebar

    Install

    npm i panel.jsx

    Weekly Downloads

    1

    Version

    4.0.0

    License

    MIT

    Last publish

    Collaborators

    • zemirco