React Tutorial
- In your www directory, download and unzip Lock.zip
- You should be able to access lock.html via
http://cslinux.utm.utoronto.ca/~UTORID/Lock/lock.html
- Understand Lock/lock.html
- Modify the LockStatus so that it shows the currentCombo as the user types it.
- Create a ClearLockButton and add it into the Lock (create another button).
- Add an appropriate event handler so that the ClearLockButton actually
clears the currentCombo.
- Fix lock.html so it behaves as follows:
When the user clicks on a button, the Lock gets the event
and then checks if the combination is correct.
If it is, then the message changes to Unlocked.
References