feat(news): Initial app with webpack
This commit is contained in:
committed by
mrugesh mohapatra
parent
42a97da763
commit
c84a9c8b57
14
news/NewsApp.js
Normal file
14
news/NewsApp.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
|
||||
const propTypes = {};
|
||||
|
||||
function NewsApp() {
|
||||
return (
|
||||
<h1>This is the news!</h1>
|
||||
);
|
||||
}
|
||||
|
||||
NewsApp.displayName = 'NewsApp';
|
||||
NewsApp.propTypes = propTypes;
|
||||
|
||||
export default NewsApp;
|
12
news/index.js
Normal file
12
news/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
|
||||
import NewsApp from './NewsApp';
|
||||
|
||||
const newsMountPoint = document.getElementById('news-app-mount');
|
||||
|
||||
render(
|
||||
<NewsApp/>,
|
||||
newsMountPoint,
|
||||
() => console.log('react has rendered and is ready to go go go go go go!!')
|
||||
);
|
Reference in New Issue
Block a user