react icon indicating copy to clipboard operation
react copied to clipboard

Problematic code in Tutorial

Open LawrenceMok opened this issue 10 years ago • 2 comments

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

LawrenceMok avatar Aug 12 '16 03:08 LawrenceMok

It's written as pollInterval={2000} (without the quotes) in the tutorial, which should be ok. Did you possibly mistype it?

zpao avatar Aug 12 '16 04:08 zpao

Sorry my mistake, issue closed. Everything is working fine.

LawrenceMok avatar Aug 12 '16 12:08 LawrenceMok