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

Functional Stateless Components #22

Closed
mikekidder opened this issue Feb 28, 2016 · 2 comments
Closed

Functional Stateless Components #22

mikekidder opened this issue Feb 28, 2016 · 2 comments

Comments

@mikekidder
Copy link

Hi Ryan, not really an issue. Just wanted to say nice work on putting this version together. I think I am totally sold on the React/Typescript combo.

Was going to submit a PR to showcase stateless components but realized it would break your tests. Have you seen anything to test for Functional Stateless Components via React Addon Utils?

@mikekidder mikekidder changed the title Stateless Functional Components Functional Stateless Components Feb 28, 2016
@mikekidder
Copy link
Author

Actually, found something here. https://github.com/iamdustan/react-testing-stateless-components

@ryanluker
Copy link
Owner

hey mike, thanks for the kind words about the repository! I put up a quick PR that upgrades the project typescript to 1.8.2 and the react.d.ts (needed for stateless components). I also added a simple stateless component (AddFishButton) but ran into testing trouble with jest like you mentioned...

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

No branches or pull requests

2 participants