1- import  {  div ,   h1 ,   useAtomSetter ,  button  }  from  '@rendrjs/core' ; 
1+ import  {  element ,   useAtomSetter ,  text  }  from  '@rendrjs/core' ; 
22import  {  dataAtom ,  selectedAtom  }  from  './store' ; 
33
44let  random  =  arr  =>  arr [ Math . round ( Math . random ( )  *  1000 )  %  arr . length ] ; 
@@ -25,33 +25,33 @@ let buildData = (count = 1000) => {
2525  return  data ; 
2626} ; 
2727
28- let  btn  =  ( id ,  slot ,  onclick )  =>  div ( { 
28+ let  btn  =  ( id ,  txt ,  onclick )  =>  element ( 'div' ,   { 
2929  class : 'col-sm-6 smallpad' , 
30-   slot : button ( { 
30+   slot : element ( 'button' ,   { 
3131    id, 
3232    onclick, 
3333    type : 'button' , 
3434    class : 'btn btn-primary btn-block' , 
35-     slot, 
35+     slot :  text ( txt ) , 
3636  } ) , 
3737} ) 
3838
3939export  let  Jumbotron  =  ( )  =>  { 
4040  let  setData  =  useAtomSetter ( dataAtom ) ; 
4141  let  setSelected  =  useAtomSetter ( selectedAtom ) ; 
4242
43-   return  div ( { 
43+   return  element ( 'div' ,   { 
4444    class : 'jumbotron' , 
45-     slot : div ( { 
45+     slot : element ( 'div' ,   { 
4646      class : 'row' , 
4747      slot : [ 
48-         div ( { 
48+         element ( 'div' ,   { 
4949          class : 'col-md-6' , 
50-           slot : h1 ( 'Rendrjs atoms' ) , 
50+           slot : element ( 'h1' ,   {   slot :  text ( 'Rendrjs atoms' )   } ) , 
5151        } ) , 
52-         div ( { 
52+         element ( 'div' ,   { 
5353          class : 'col-md-6' , 
54-           slot : div ( { 
54+           slot : element ( 'div' ,   { 
5555            class : 'row' , 
5656            slot : [ 
5757              btn ( 'run' ,  'Create 1,000 rows' ,  ( )  =>  { 
0 commit comments