ScopedSlots usage of vue, how to display scope slots?

use scopedSlots to display scope slots, through the following code:

               <div id="K7">
                    <u-component>
                    <template slot-scope="props">
                    

2

</template> </u-component> </div> <script> Vue.component("u-component",{ render: function (createElement) { return createElement("div", [ createElement("child", { scopedSlots: { default: function (props) { return createElement("span", props.text) } } }) ]) }, data:function(){ return {text:"nvjs"} } }) new Vue({ el:"-sharpK7" }) </script>

but there is no display in the browser, how to use it correctly to display the value of text?

Mar.28,2021

render (h) {

  return  h('div',{},this.$scopedSlots.default({text:this.text})])  

}


landlord, you have not solved this problem

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b4070d-2c519.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b4070d-2c519.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?