README
Usage
npm install this project as dev dependencies
npm install git+ssh://git@git.silot.tech:lab/skgsearch-components.git --save-dev
vuera
react in vue useinstall vuera
npm install vuera --save
config vue
import Vue from 'vue'
import App from './App.vue'
import { VuePlugin } from 'vuera'
Vue.config.productionTip = false
Vue.use(VuePlugin)
new Vue({
render: h => h(App)
}).$mount('#app')
use the component
<template>
<div id="app">
<fact-check v-if="api" :api="api" :query="query" />
</div>
</template>
<script>
import FactCheck from 'skgsearch-components/lib/shared/FactCheck'
export default {
data () {
return {
api: 'http://lab.silot.tech:8300/api',
query: {taxId:'123'}
}
},
name: 'app',
components: {
'fact-check': FactCheck
}
}
</script>
react in react
import FactCheck from 'skgsearch-components/lib/shared/FactCheck'
export default (props)=>{
const query = {
taxId:'tax id',
name:'name'
}
return <FactCheck api={'http://lab.silot.tech:8300/api'} query={quer}/>
}