Реакту заодно )
                  
                  
                  Как правильно соотнести аналоги  различных инициализаций?
                  
                  
                  
                  
                  
                  let varName  == const [varName, fn] = useState() == constructor(){ this.state = {varName}} == data(){return {varName} } == ref({varName})
                  
                  
                  export let varName  == ({varName}) == constructor(){ super(props) } == props: [ 'varName' ] == props: [ 'varName' ]
                  
                  
                  function  == function == function == watch / computed / methods == watch / computed / methods 
                  
                  
                  export function == ??? == function == watch / computed / methods == watch / computed / methods 
                  
                  
                  
                  
                  
                  $:  == useEffect() / useMemo == ??? == watch / computed == watch / computed
                  
                  
                  <script> ... </script>  == ???  == ???  == ???  == ???
                  
                  
                  <html /> == render == render == template / render ==  template / render 
                  
                  
                  
                  
                  
                  onMount   == useEffect( ??? ) == componentDidMount  == created / mounted == created / mounted
                  
                  
                  beforeUpdate  == useEffect( ??? ) == ??? ==  beforeUpdate == beforeUpdate
                  
                  
                  afterUpdate  == useEffect( ??? ) == componentDidUpdate ==  updated == updated
                  
                  
                  onDestroy  == useEffect( ??? ) == componentWillUnmount == unmounted??? == unmounted???
                  
                  
                
@volodya11let выходи, к тебе пришли
Володя (@volodya11let) сейчас кушает, позже выйдет гулять))
Обсуждают сегодня