Commit 75701b48 by AlasdairSwan

WIP

parent d5ec0924
/* global gettext */
/* eslint one-var: ["error", "always"] */
/* eslint no-alert: "error" */
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
class RenderPage extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="my-test-div">
<h2>A React App!!!</h2>
</div>
);
}
}
export class LearnerAnalyticsDashboard {
constructor(context) {
ReactDOM.render(
<RenderPage context={context} />,
document.getElementById('root'),
);
}
}
......@@ -25,6 +25,7 @@ module.exports = {
// LMS
SingleSupportForm: './lms/static/support/jsx/single_support_form.jsx',
AlertStatusBar: './lms/static/js/accessible_components/StatusBarAlert.jsx',
LearnerAnalyticsDashboard: './lms/static/js/learner_analytics_dashboard/index.jsx',
// Features
CourseGoals: './openedx/features/course_experience/static/course_experience/js/CourseGoals.js',
......
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