react
react copied to clipboard
Problematic code in Tutorial
In this page: https://facebook.github.io/react/docs/tutorial.html
pollInterval="{2000}" caused the browser to load /api/comment every 0ms
instead it should be
pollInterval="2000" to load every 2 seconds
It's written as pollInterval={2000} (without the quotes) in the tutorial, which should be ok. Did you possibly mistype it?
Sorry my mistake, issue closed. Everything is working fine.