move docs to own folder
This commit is contained in:
24
docs/src/components/ReactRenderer/index.vue
Normal file
24
docs/src/components/ReactRenderer/index.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<div></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
component: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
ReactDOM.render(React.createElement(this.component), this.$el)
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
ReactDOM.unmountComponentAtNode(this.$el)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user