docs: normalize capitalization (#7619)

This commit is contained in:
Joshua Chen 2022-06-15 13:04:33 +08:00 committed by GitHub
parent aeb6c971c0
commit e12a2efaeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 99 additions and 99 deletions

View file

@ -455,7 +455,7 @@ To use the plugin, create a code block with `live` attached to the language meta
function Clock(props) {
const [date, setDate] = useState(new Date());
useEffect(() => {
var timerID = setInterval(() => tick(), 1000);
const timerID = setInterval(() => tick(), 1000);
return function cleanup() {
clearInterval(timerID);
@ -485,7 +485,7 @@ The code block will be rendered as an interactive editor. Changes to the code wi
function Clock(props) {
const [date, setDate] = useState(new Date());
useEffect(() => {
var timerID = setInterval(() => tick(), 1000);
const timerID = setInterval(() => tick(), 1000);
return function cleanup() {
clearInterval(timerID);