File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed
Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 11import React from 'react'
22import { Segment } from 'react-semantify'
33
4- const About = React . createClass ( {
4+ class About extends React . Component {
55 render ( ) {
66 return (
77 < Segment >
@@ -13,6 +13,6 @@ const About = React.createClass({
1313 </ Segment >
1414 )
1515 }
16- } ) ;
16+ }
1717
1818export default About
Original file line number Diff line number Diff line change 11import React from 'react'
2- import ReactRouter from 'react-router'
2+ import ReactRouter , { RouteHandler , Link } from 'react-router'
33import { Menu , Segment , Section } from 'react-semantify'
44
5- const RouteHandler = ReactRouter . RouteHandler ;
6- const Link = ReactRouter . Link ;
7-
8- const App = React . createClass ( {
5+ class App extends React . Component {
96 render ( ) {
10- const styles = {
7+ const styles = {
118 margin : 10
129 } ;
1310 return (
@@ -32,6 +29,6 @@ const App = React.createClass({
3229 </ Section >
3330 )
3431 }
35- } ) ;
32+ }
3633
3734export default App
Original file line number Diff line number Diff line change @@ -3,14 +3,16 @@ import {Segment} from 'react-semantify'
33
44import UsefulLinks from './UsefulLinks'
55
6- const Home = React . createClass ( {
6+ class Home extends React . Component {
77 render ( ) {
88 return (
9- < Segment >
10- < UsefulLinks title = "React useful links" />
11- </ Segment >
9+ < div >
10+ < Segment >
11+ < UsefulLinks title = "React useful links" />
12+ </ Segment >
13+ </ div >
1214 )
1315 }
14- } ) ;
16+ }
1517
1618export default Home
You can’t perform that action at this time.
0 commit comments