Skip to content

Adds a spec constructor function with getInitialState #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2015

Conversation

ethul
Copy link
Contributor

@ethul ethul commented Oct 17, 2015

I thought it might be handy to have a constructor that allows for passing in the getInitialState function. Sometimes the initial state might be derived from the props and there may not be a good plain state value that is known at the time the class is specified.

paf31 added a commit that referenced this pull request Oct 18, 2015
Adds a spec constructor function with getInitialState
@paf31 paf31 merged commit 8f99b18 into purescript-contrib:master Oct 18, 2015
@paf31
Copy link
Contributor

paf31 commented Oct 18, 2015

Thanks! Looks good.

@ethul
Copy link
Contributor Author

ethul commented Oct 19, 2015

Thank you!

On Sun, Oct 18, 2015 at 6:27 PM, Phil Freeman notifications@github.com
wrote:

Thanks! Looks good.


Reply to this email directly or view it on GitHub
#49 (comment)
.

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

Successfully merging this pull request may close these issues.

2 participants