-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prototype: React-enabled XBlocks #634
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
See #635
Goals
Suggested approach
Here's how I would do it, but that doesn't mean it's the only way it could be done!
Choose an XBlock, ideally one of the ones that is defined in its own respository. Make these changes:
student_view_data
method, which will return a JSON representation of the block's student view. Example that exists in master today (it was used by alternative block frontends for the LabXChange project).StudentView
. The student_view_data should be expected to be passed in via the component's props."path/to/view/module.js"
is replaced by a path that the Learning MFE can dynamicallyimport(...)
in order to load this block'sStudentView
component.In edx-platform:
This will allow the Learning MFE to dynamically discover the full list of React-enabled blocks.
In the Learning MFE:
StudentView
of each block.StudentView
component instead of rendering the standard iframe to edx-platform.Notes
See parent issue for more ideas and discussion.
The text was updated successfully, but these errors were encountered: