Skip to content

Export custom views

Arnaud Vergnet requested to merge topic/default/lib-split into branch/default

Separate components from views and exposes components to be reused as dependencies in a react application.

  • React components are the base for creating the views: they take an endpoint and an URI, and display the content using a custom format.
  • Views are JS classes which can render the react components no matter the environnement by using React.render to generate the DOM. Each view is compiled as a separate bundle and published on the gitlab pages.

Components can be used as dependencies in other React projects when compiling using npm run build:lib. The views can still be compiled using npm run build:prod for deployment using GitLab pages to keep the current behavior.

Linked to sparqlexplorer#76 (closed)

Edited by Arnaud Vergnet

Merge request reports