Skip to content

Commit 40d78c8

Browse files
committed
Fix
1 parent 3813d20 commit 40d78c8

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

src/app.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55

66
.my-style {
7-
background-color: var(--custome-bg-color); /* Custome Propertyを使用 */
7+
background-color: var(--custome-bg-color); /* using Custome Property */
88
color: blue;
99
font-weight: bold;
1010
}
1111

1212

13-
:fullscreen a { /* PostCSSによりベンダープリフィックスが展開される */
13+
:fullscreen a { /* expanding vender prefixes by postcss-cssnext */
1414
display: flex
1515
}

src/app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { ChildUsual } from './child-usual'
88

99
export class App extends React.Component<{}, {}>{
1010
render() {
11-
console.log('app props:', this.props)
12-
console.log('app state:', this.state)
11+
console.log('app props:', this.props) // {} (empty object)
12+
console.log('app state:', this.state) // null
1313
return (
1414
<div>
1515
<div styleName="my-style">

src/child-usual.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const styles = require('./child.css')
66

77
export class ChildUsual extends React.Component<{}, {}>{
88
render() {
9-
console.log('child-usual props:', this.props)
10-
console.log('child-usual state:', this.state)
9+
console.log('child-usual props:', this.props) // {} (empty object)
10+
console.log('child-usual state:', this.state) // null
1111
return (
1212
<div>
1313
<div className={styles['my-style']}>

src/child.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55

66
.my-style {
7-
composes: my-style from './app.css'; /* app.cssの.my-styleを継承 */
8-
background-color: var(--custome-bg-color); /* Custome Propertyを使用 */
7+
composes: my-style from './app.css'; /* extending .my-style from app.css */
8+
background-color: var(--custome-bg-color); /* using Custome Property */
99
}

src/child.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import './child.css'
55

66
export class Child extends React.Component<{}, {}>{
77
render() {
8-
console.log('child props:', this.props)
9-
console.log('child state:', this.state)
8+
console.log('child props:', this.props) // {} (empty object)
9+
console.log('child state:', this.state) // null
1010
return (
1111
<div>
1212
<div styleName="my-style">

src/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class Root extends React.Component<{}, {}>{
88
return (
99
<div>
1010
<div className="my-style">
11-
root text
11+
root text {/* no css attached */}
1212
</div>
1313
<App />
1414
</div>

0 commit comments

Comments
 (0)