Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Use reactjs offical proptypes lib.#352

Closed
tkh44 wants to merge 1 commit into
preactjs:masterfrom
tkh44:wip-reactjs-prop-types
Closed

Use reactjs offical proptypes lib.#352
tkh44 wants to merge 1 commit into
preactjs:masterfrom
tkh44:wip-reactjs-prop-types

Conversation

@tkh44

@tkh44 tkh44 commented Apr 8, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@developit

Copy link
Copy Markdown
Member

Oooh, it's 1kb instead of 1.6kb too!

@developit

Copy link
Copy Markdown
Member

Hmm - looks like its a noop in prod but fairly large in dev.

I'm getting an error though when I try to emulate this on jsfiddle: it seems like the new prop-types module doesn't allow manual validation? They require that you have access to an internal object for some reason:
https://jsfiddle.net/developit/agc04zgv/

@tkh44

tkh44 commented Apr 8, 2017

Copy link
Copy Markdown
Contributor Author

@developit have you tried in combination with #350? I've been running this combo locally with success.

@developit

Copy link
Copy Markdown
Member

@tkh44 Are we good to merge #359 instead of this since it fixes the checkPropTypes strictness issue?

@tkh44

tkh44 commented Apr 15, 2017

Copy link
Copy Markdown
Contributor Author

Yes @developit. Ill go ahead and close this PR.

@tkh44 tkh44 closed this Apr 15, 2017
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