Commit f872a30c by bert

学习单元测试

parent 8f6672d0
import React, { Component } from 'react';
const styles = {
height: '100%',
background: '#333'
}
class Root extends Component {
render() {
return (
<div style={styles}>
<h1 className='welcome-header'>Welcome to testing React!</h1>
</div>
)
}
}
export default Root;
\ No newline at end of file
import React, { Component } from 'react';
import { render } from 'react-dom';
class Root extends Component {
render() {
return <h1> Hello World </h1>;
}
}
export default Root;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment