Skip to content

Commit 7739165

Browse files
committed
docs(jsx): add missing {}. PR780
1 parent 68f3d39 commit 7739165

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/handbook/JSX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ interface FooProp {
123123

124124
declare function AnotherComponent(prop: {name: string});
125125
function ComponentFoo(prop: FooProp) {
126-
return <AnotherComponent name=prop.name />;
126+
return <AnotherComponent name={prop.name} />;
127127
}
128128

129129
const Button = (prop: {value: string}, context: { color: string }) => <button>

0 commit comments

Comments
 (0)