ReactSmarter

Results 10 comments of ReactSmarter

model设计费脑子,体现在什么地方? 初学者不太懂,但是感觉到state要弄好是不太容易的,这里有什么教程,或者经验吗?

>use preact. that is ok ! ```js import {ActivityBar,Explore,Editor,StatusBar,NoData,Nav} from './component.mjs'; ``` ```js import { html,useState} from '../../common/js/standalone.module.js'; import { button_list } from '../config.js'; const List=(props)=>{ console.log(props); return (html` ${...

现在提供 typescript支持吗?

React-Hooks现在支持吗? 对于小程序,我觉得React-hooks就够了,太好用了.

`第一个函数不能用箭头函数`,这是为什么? js里为什么要用箭头函数? 第一层不用怎么理解?

Here is some code `using Symbolics,Plots, PlutoUI,Latexify,Unitful,UnitfulLatexify` ```julia let @variables Work, heat,junit,weight, g,h,n,x heat=(2.00*10^6)u"cal" junit=4.186u"J/cal" g=9.80u"m/s^2" weight=50u"kg" h=2u"m" Work=heat*junit n=Work/(weight*g*h) latexify(:(n=Work/(weight*g*h)=$n)) end ``` ```julia let heat,g, j,weight,height=(2.00*10^6)u"cal",9.82u"m/s^2",4.186u"J/cal",50u"kg",2u"m" latexify([heat,g, j,weight,height]) end...

> I think you want to bypass `Polynomials`, right? If so, I found this [thread](https://github.com/JuliaSymbolics/Symbolics.jl/issues/216) to be helpful: Thanks. This is exactly what I want ### get eigen value of...

> > 想把初始化部分封装一个函数, 直接返回一个坐标 > > 不太确定你要做什么,感觉上是你对 js 的异步返回不够了解?首先先确定你已经知道 promise await sync 现在React 中有 Hooks方法 例如 useLocation , 想达到的目标就是在想获取位置的地方直接使用一个函数获取地理信息 ``` import { PermissionsAndroid } from "react-native"; import { init, Geolocation...

> > 想把初始化部分封装一个函数, 直接返回一个坐标 > > 不太确定你要做什么,感觉上是你对 js 的异步返回不够了解?首先先确定你已经知道 promise await sync 初步已经封装好了.参考的是这篇文章 [`https://www.hooks.guide/react-use/useGeolocation`](https://www.hooks.guide/react-use/useGeolocation) 也可以使用useContextState hooks函数在 app的入口获取信息,然后在实际应用中通过Provider来消费数据, 如果数据管理不太复杂的话, 就不用redux了. ``` import React, { useEffect, useState } from "react"; import {...

> > `Num` is a wrapper for `Number` and `SymbolicUtils.Symbolic`, etc. > > You need to call `Symbolics.value` to get its internal values. Thanks !