Skip to content

Commit 00fd93a

Browse files
author
arjun-sudo
committed
sate-conditional-render
1 parent d557777 commit 00fd93a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

conditional-render/src/App.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ class App extends Component {
2121
render() {
2222
return (
2323
<div>
24-
24+
{/*ternary operator*/}
2525
{this.state.isLoading ?
2626
<h1>Loading .......</h1> :
27-
2827
<Conditional/>}
2928
</div>
3029
)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "condtional-render-practice",
3+
"version": "0.1.0",
4+
"private": true
5+
}

0 commit comments

Comments
 (0)