1.1.7 • Published 5 years ago

demo-listview v1.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

List-View

Easily create a list of data using ListView

Installation and usage

The easiest way to use ListView is to install it from npm and build it into your app with Webpack.

yarn add demo-listview

Then use it in your app.

import React, { Component } from 'react';
import ListView from './components/list-view';

class App extends Component {
  constructor(props){
    super(props);
    this.state = {
      data: [
        {message: 'Hello, How are you?'},
        {message: 'Hai Hey there'},
        {message: 'How are you??'},
        {message: 'Wait!'},
        {message: 'Bye'},
      ]
    }
  }
  render() {
    let {data} = this.state;
    return (
      <div className="App">
        <ListView listData={data}/>
      </div>
    );
  }
}

Props

There is only one prop for now. We will add more features in the future.

  • listData - accepts an array of Objects, in which the key of the object must be message.

License

MIT Licensed. Copyright (c) Krishna 2018.

1.1.1

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.0.1

7 years ago

1.0.0

7 years ago