This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import styled from 'styled-components'; | |
export default class WithStyledComponents extends React.Component{ | |
constructor(props){ | |
const defaultOutput = "Change me..."; | |
super(props); | |
this.state={ | |
value: defaultOutput, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import '../assets/css/withoutStyledComponents.css' | |
export default class WithoutStyledComponents extends React.Component{ | |
constructor(props){ | |
const defaultOutput = "Change me..."; | |
super(props); | |
this.state={ | |
value: defaultOutput, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#main { | |
padding: 32px; | |
border: outset rgba(247, 159, 121, 1) 1px; | |
border-radius: 4px; | |
} | |
#output-area{ | |
min-height: 128px; | |
margin: 16px; | |
cursor: default; |