Skip to content

Commit c2c16f9

Browse files
committed
use testParam in JsTestComponent
1 parent 8f8cb0b commit c2c16f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/JsTestComponent/JsTestComponent.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { PureComponent } from 'react'
22

3-
const JsTestComponent = (test) => {
4-
return <>{test + ''}</>
5-
// return props.testparam ? <>{props.testparam}</> : <>{'JSTESTCOMPONENT'}</>
3+
const JsTestComponent = (props) => {
4+
// return <>{props + ''}</>
5+
return <>{props.testParam ?? 'JSTESTCOMPONENT'}</>
66
}
77

88
export default JsTestComponent

0 commit comments

Comments
 (0)