Add scaffolding + Two props update check

This commit is contained in:
Abhas
2018-12-25 18:19:23 +05:30
parent 5af06bf948
commit f7dd7884af
9 changed files with 248 additions and 48 deletions
+23
View File
@@ -0,0 +1,23 @@
import React, { Component } from 'react';
import '../section.css';
class SectionB extends Component {
render() {
return (
<div className="section" ref={this.props.forwardedRef}>
<div className="section-text">
This is section B
<br />
{
this.props.body
}
</div>
</div>
)
}
};
export default React.forwardRef((props, ref) => {
return <SectionB {...props} forwardedRef={ref} />;
});