Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 738 Bytes

TODO.md

File metadata and controls

40 lines (28 loc) · 738 Bytes

TODO

Improvements

  • Add documentation for new features
  • Migrate to TypeScript
  • Find a way to retrieve the expiry date for a cookie
  • Extract the Banner and Modal into separate components
  • Make a React library for Crumbs
  • Allow custom components to be rendered in response
  • JSON encode the cookies rather than storing them in a weird format
  • Add some kind of automated testing to verify it works

Migration Functions

Migration functions should use the following type signature:

type Migration = (string: value) => <string[] | null>

Banner

class Component {
  constructor() {
    this.bind();
  }

  bind() {}

  destroy() {}

  render() {}

  unbind() {}
}

class Banner extends Component {}