mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
d991da399c
no issue - updated ember-cli-build and eslint config to support jsx - added `react` and `react-dom` libraries - included them in the build so the `React` and `ReactDom` globals are available for use by third party components - added vendor shims so we can do things like `import * from 'react'` where the imports are referenced directly to the already imported modules - added `<ReactComponent>` component - designed to be extended from in specific react component classes - renders a div and calls `renderComponent()` action once inserted - this should be replaced in any extended classes in order to render a react component - handles react rendering and teardown - added `<ReactMobiledocEditor>` react component that renders an editor composed of components provided by the `react-mobiledoc-editor` package - added `<KoenigReactEditor>` ember component that renders `<ReactMobiledocEditor>` and handles pass-through of Ember arguments and handling of actions - updated `<GhKoenigEditorReact>` to render `<KoenigReactEditor>` in place of `<KoenigEditor>`
1 line
47 B
Handlebars
1 line
47 B
Handlebars
<div {{did-insert this.renderComponent}}></div> |