anorudes / redux-easy-boilerplate

React redux easy boilerplate
MIT License
633 stars 123 forks source link

Add items on enter #9

Closed stefaneng closed 8 years ago

stefaneng commented 8 years ago

Only add non-empty items, and add items when enter is pressed and the input field is focused.

anorudes commented 8 years ago

stefanend, thanks for help, but i think that the boilerplate need have small code. I see that you used a variable in render, but it's a bad idea, becouse will reset after render. I think a code of component must have only state or props. What do you think?

stefaneng commented 8 years ago

You are right, I this leaving it as is will be better.