Skip to content

Commit 9510913

Browse files
committed
# Partial Components in React
1 parent 258f74e commit 9510913

File tree

1 file changed

+5
-2
lines changed
  • recursive-components/src

1 file changed

+5
-2
lines changed

recursive-components/src/App.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { RedButton, SmallGreenButton } from "./components/composition";
2+
import { SmallRedButton } from "./components/partial";
23
import { Recursive } from "./components/recursive";
34

45
const myNestedObject = {
@@ -17,8 +18,10 @@ function App() {
1718
return (
1819
<>
1920
<Recursive data={myNestedObject} />
20-
<SmallGreenButton text='I am a small green button' />
21-
<RedButton text='I am a red button' />
21+
{/* <SmallGreenButton text='I am a small green button' />
22+
<RedButton text='I am a red button' /> */}
23+
<SmallRedButton text='I am a small red button' />
24+
2225
</>
2326
);
2427
}

0 commit comments

Comments
 (0)