todo-docker-react

1.0.2 • Public • Published

todo-docker-react

Build Status npm package Coverage Status FOSSA Status

USAGE

My GitHub Page also use todo-docker-react.

My GitHub Page

import as any other react based components.

import TodoDocker from "todo-docker-react";
<TodoDocker title="Notepad"/>

and insert above code where you want, and the result may be...

class TheContainer extends Component {
  render() {
    return <div>
      <h1>TODO DOCKER REACT rules!</h1>

      <TodoDocker title="Notepad"/>
    </div>
  }
}

PROPS

currently, todo-docker-react (call it, TDR) has 2 props. one is title, and another is storage.

  • title is title of ui.
  • storage is the name of item which localStorage set. (default: _exl_todo)

for examples, below image is localStorage of what uses TDR, without storage props.

LocalStorage

because of no storage props, default value _exl_todo was set.

If you want other localStorage item name(e.g. my_storage), just set storage props to it. The result may...

<TodoDocker title="Notepad" storage="my_storage" />

License

FOSSA Status

Package Sidebar

Install

npm i todo-docker-react

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

22.5 kB

Total Files

7

Last publish

Collaborators

  • exilee20c