Skip to content

Conversation

JoshuaRogan
Copy link
Contributor

@JoshuaRogan JoshuaRogan commented Oct 2, 2019

  • Update readme
  • Write tests
  • Test code

Click the theme buttons to re-initialize examples.

```js
<StyledCountdown onTick={value => console.log("Countdown: ", value)} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

🚫

@@ -0,0 +1,101 @@
import React, { useState } from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

We use React.useState, let's drop this import

setIsLimbo(true);
}, [src]);
// this is odd but it allows us to quickly flush the src when an image src is swapped but react is able to use
// the same DOM element. The other option would be to use keys but then react can't be as efficient.
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants