File tree 6 files changed +8
-340
lines changed 6 files changed +8
-340
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "presets" : [" @babel/preset-env" , " @babel/preset-react" ],
3
- "plugins" : [
4
- [
5
- " prismjs" ,
6
- {
7
- "languages" : [" javascript" ],
8
- "theme" : " twilight"
9
- }
10
- ]
11
- ]
2
+ "presets" : [" @babel/preset-env" , " @babel/preset-react" ]
12
3
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
- "prismjs" : " ^1.15.0" ,
7
6
"react" : " ^16.7.0" ,
8
7
"react-dom" : " ^16.7.0" ,
9
8
"styled-components" : " ^4.1.3"
20
19
"@babel/preset-react" : " ^7.0.0" ,
21
20
"babel-eslint" : " ^10.0.1" ,
22
21
"babel-loader" : " ^8.0.5" ,
23
- "babel-plugin-prismjs" : " ^1.0.2" ,
24
- "css-loader" : " ^2.1.0" ,
25
22
"eslint" : " ^5.12.1" ,
26
23
"eslint-config-react" : " ^1.1.7" ,
27
24
"eslint-loader" : " ^2.1.1" ,
28
25
"eslint-plugin-react" : " ^7.12.4" ,
29
26
"html-webpack-plugin" : " ^3.2.0" ,
30
27
"prettier" : " 1.16.2" ,
31
- "style-loader" : " ^0.23.1" ,
32
28
"webpack" : " ^4.29.0" ,
33
29
"webpack-bundle-analyzer" : " ^3.0.3" ,
34
30
"webpack-cli" : " ^3.2.1" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import ReactDOM from 'react-dom' ;
3
3
import styled from 'styled-components' ;
4
- import Prism from 'prismjs' ;
5
- import '../css/prism.css' ;
6
4
7
5
const Title = styled . h1 `
8
6
font-family: sans-serif;
9
- padding: 1.5em ;
7
+ padding: 2em ;
10
8
background: papayawhip;
11
- font-size: 2em ;
9
+ font-size: 4em ;
12
10
text-align: center;
13
11
color: palevioletred;
14
12
margin: 0;
15
13
` ;
16
14
17
15
class Welcome extends React . Component {
18
- componentDidMount ( ) {
19
- Prism . highlightAll ( ) ;
20
- }
21
-
22
16
render ( ) {
23
- return (
24
- < React . Fragment >
25
- < Title > JavaScript Patterns</ Title >
26
-
27
- < pre >
28
- < code className = "language-javascript" >
29
- { `
30
- onSubmit(e) {
31
- e.preventDefault();
32
- const job = {
33
- title: 'Developer',
34
- company: 'Facebook'
35
- };
36
- }
37
- ` }
38
- </ code >
39
- </ pre >
40
- </ React . Fragment >
41
- ) ;
17
+ return < Title > Hello World</ Title > ;
42
18
}
43
19
}
44
20
Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ module.exports = {
24
24
test : / \. ( j s | j s x ) $ / ,
25
25
exclude : / n o d e _ m o d u l e s / ,
26
26
use : [ 'babel-loader' , 'eslint-loader' ]
27
- } ,
28
- {
29
- test : / \. c s s $ / ,
30
- use : [ 'style-loader' , 'css-loader' ]
31
27
}
32
28
]
33
29
} ,
You can’t perform that action at this time.
0 commit comments