Created
March 25, 2018 23:52
-
-
Save Sudip7/693983751fcfaab009eb38c68b4b7071 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Code | |
import React from 'react'; | |
import Chance from 'chance'; | |
class Detail extends React.Component { | |
render() { | |
return <p>Hello, {window.Chance.first()}!</p>; | |
} | |
} | |
export default Detail; | |
//error | |
TypeError: window.Chance.first is not a function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment