stoeffel / react-cond

Lisp-Style conditional rendering in react.
MIT License
177 stars 9 forks source link

Add component based cases #16

Closed esamattis closed 9 years ago

esamattis commented 9 years ago

First attempt. Don't like at all how the components are detected in the children prop. Ideas?

closes #16

stoeffel commented 9 years ago

Unfortunately, I have no other ideas :frowning: That's the way I had done it.

esamattis commented 9 years ago

Could you add a test with test={someFunc}?

Added, rebased and force pushed.

stoeffel commented 9 years ago

thx a lot. We will just have to add it to the readme and this is good to go. we can always refactor detection of the child components later.

stoeffel commented 9 years ago

btw. I added you to npm.

esamattis commented 9 years ago

btw. I added you to npm.

Thanks.

Renamed Case to Clause as it's more inline with the wording in the readme.

stoeffel commented 9 years ago

I added some more docs.