Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not sure what you mean, could you clarify? Having a stateful component render something different based on a prop change is core to react. Using the key property "resets" the component by rendering a new one, but just because you use state doesn't mean you can't change props.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: