Browse Source

Fix alternative solution to add and remove a CSS class (#4027) (#4072)

* Fix alternative solution to add and remove a CSS class (#4027)

* Update reacting-to-input-with-state.md

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
main
beet 3 years ago
committed by GitHub
parent
commit
7f995398f4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      beta/src/pages/learn/reacting-to-input-with-state.md

3
beta/src/pages/learn/reacting-to-input-with-state.md

@ -633,6 +633,7 @@ export default function Picture() {
className="picture picture--active"
alt="Rainbow houses in Kampung Pelangi, Indonesia"
src="https://i.imgur.com/5qwVYb1.jpeg"
onClick={e => e.stopPropagation()}
/>
</div>
);
@ -1215,4 +1216,4 @@ The `updateDOM` function you wrote shows what React does under the hood when you
</Solution>
</Challenges>
</Challenges>

Loading…
Cancel
Save