File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11
11
},
12
12
"devDependencies" : {
13
13
"@babel/preset-react" : " ^7.0.0" ,
14
+ "antd" : " ^3.12.4" ,
14
15
"axios" : " ^0.18" ,
15
16
"bootstrap" : " ^4.0.0" ,
16
17
"cross-env" : " ^5.1" ,
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
+ import { DatePicker , Button } from 'antd'
2
3
3
4
export default class Example extends Component {
4
5
render ( ) {
5
6
return (
6
7
< div className = "container" >
7
8
< div className = "card-header" > Example Component</ div >
8
9
< div className = "card-body" > I'm an example component!</ div >
10
+ < DatePicker />
11
+ < Button type = "primary" > Primary</ Button >
9
12
</ div >
10
13
) ;
11
14
}
Original file line number Diff line number Diff line change 5
5
// Variables
6
6
@import ' variables' ;
7
7
8
+ @import ' ~antd/dist/antd.css' ;
8
9
// Bootstrap
9
10
@import ' ~bootstrap/scss/bootstrap' ;
10
11
Original file line number Diff line number Diff line change 5
5
<meta name =" viewport" content =" width=device-width, initial-scale=1" >
6
6
<meta name =" csrf-token" content =" {{ csrf_token () } }" >
7
7
<title >React On Laravel</title >
8
+ <link rel =" stylesheet" href =" {{ asset (' css/app.css' )} }" >
8
9
<script >
9
10
window .Laravel = <?php echo json_encode ([
10
11
' csrfToken' => csrf_token (),
You can’t perform that action at this time.
0 commit comments