Skip to content

Commit 2b89e42

Browse files
committed
Comment out unused parts to have a green master build
1 parent 887b163 commit 2b89e42

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

examples/cra/src/index.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
altVisible,
1313
button
1414
} from './styles'
15-
import { RefForwardingElement } from './viewportParentDocument'
15+
// import { RefForwardingElement } from './viewportParentDocument'
1616

1717
function App() {
1818
const parentRef = React.useRef(null)
@@ -63,21 +63,21 @@ function App() {
6363
)
6464
}
6565

66-
function App2() {
67-
const forwardRef = React.useCallback(node => {
68-
console.log('node ->', node)
69-
})
70-
const [showElement, toggleElement] = React.useState(true)
66+
// function App2() {
67+
// const forwardRef = React.useCallback(node => {
68+
// console.log('node ->', node)
69+
// })
70+
// const [showElement, toggleElement] = React.useState(true)
7171

72-
return (
73-
<>
74-
<button onClick={_ => toggleElement(v => !v)}>
75-
{showElement ? 'Hide Element' : 'Show Element'}
76-
</button>
77-
{showElement ? <RefForwardingElement ref={forwardRef} threshold={75} /> : null}
78-
</>
79-
)
80-
}
72+
// return (
73+
// <>
74+
// <button onClick={_ => toggleElement(v => !v)}>
75+
// {showElement ? 'Hide Element' : 'Show Element'}
76+
// </button>
77+
// {showElement ? <RefForwardingElement ref={forwardRef} threshold={75} /> : null}
78+
// </>
79+
// )
80+
// }
8181

8282
async function run() {
8383
if (!window.IntersectionObserver) {

0 commit comments

Comments
 (0)