11
12// Convenience wrapper to organize API features in DevTools.
13▶function Feature({children, label, version}) {
14 return (
15 <div className="Feature">
· · ·
33}
34
35▶// https://github.com/facebook/react/blob/main/CHANGELOG.md
36switch (major) {
37 case 16:
· · ·
38 switch (minor) {
39 case 7:
40▶ if (typeof React.useState === 'function') {
41 // Hooks
42 function Hooks() {
· · ·
42▶ function Hooks() {
43 const [count, setCount] = React.useState(0);
44 const incrementCount = React.useCallback(
· · ·
61 case 6:
62 // memo
63▶ function LabelComponent({label}) {
64 return <label>{label}</label>;
65 }
+ 8 more matches in this file