Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

Rewrite to use react instead of @yr/component #2

Merged
merged 4 commits into from
May 22, 2018

Conversation

Saegrov
Copy link
Contributor

@Saegrov Saegrov commented May 22, 2018

  • Change to typescript
  • Add prettier
  • Remove karma-tests

*/
shouldComponentUpdate(nextProps, nextState, nextContext) {
shouldComponentUpdate(_nextProps: any, nextState: any): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the underscore for unused parameter a typescript convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


const isEqual = require('@yr/is-equal');
const runtime = require('@yr/runtime');
export type SomeFn = (selectors: any[], context?: any, props?: any) => any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this name. Can you think of a better name than SomeFn?

Copy link
Contributor

@esseb esseb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Saegrov Saegrov merged commit 1a066ae into master May 22, 2018
@Saegrov Saegrov deleted the feature/switch-to-react branch May 22, 2018 12:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants