Skip to content

Commit a980383

Browse files
committed
�✔✔
1 parent 6856faf commit a980383

File tree

8 files changed

+373
-5
lines changed

8 files changed

+373
-5
lines changed

package-lock.json

Lines changed: 192 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"react-codemirror2": "^6.0.0",
1212
"react-dom": "^16.8.6",
1313
"react-router-dom": "^5.0.1",
14-
"react-scripts": "3.0.1"
14+
"react-scripts": "3.0.1",
15+
"react-treebeard": "^3.2.4"
1516
},
1617
"scripts": {
1718
"start": "react-scripts start",

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
work correctly both with client-side routing and a non-root public URL.
2020
Learn how to configure a non-root public URL by running `npm run build`.
2121
-->
22-
<title>React App</title>
22+
<title>React CodeMirror</title>
2323
</head>
2424
<body>
2525
<noscript>You need to enable JavaScript to run this app.</noscript>

src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import AppNav from './components/AppNav'
55
import XML from './components/XML'
66
import JS from './components/JS'
77
import Home from './components/Home'
8+
import Tree from './components/Tree'
89

910

1011
export default class App extends Component {
@@ -18,6 +19,7 @@ export default class App extends Component {
1819
<Route exact path="/" component={Home}/>
1920
<Route path="/xml" component={XML}/>
2021
<Route path="/js" component={JS}/>
22+
<Route path="/tree" component={Tree}/>
2123
</Switch>
2224
</React.Fragment>
2325
);

src/components/AppNav.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ const AppNav = () => {
2020
JS
2121
</Link>
2222
</li>
23+
<li className="nav-item ml-5 ">
24+
<Link to='/tree' className='nav-link'>
25+
Tree
26+
</Link>
27+
</li>
2328
</ul>
2429
</nav>
2530
</React.Fragment>

src/components/Home.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react'
22

3+
34
const Home = () => {
45
return <h1>HOME PAGE</h1>
56
}

0 commit comments

Comments
 (0)