Skip to content
#

reactjs

react logo

React (also known as React.js or ReactJS) is a JavaScript library that makes developing interactive user interfaces simple.

Here are 48,764 public repositories matching this topic...

ilzhi
ilzhi commented Aug 12, 2020

相关平台

微信小程序

复现仓库

https://github.com/li-z/taro-bug
小程序基础库: 2.12.0
使用框架: React

复现步骤

运行项目后点击跳转到详情页,然后返回首页。然后触发子组件的 onClick 事件时,回调函数却还是详情页的函数。去掉id属性后正常。

期望结果

有无id属性都应正常

实际结果

有id属性异常

环境信息

Taro CLI 3.0.7 environment info:
    System:
      OS: macOS
blitz
isoppp
isoppp commented Nov 7, 2020

What do you want and why?

const query = {}
cosnt params = useParams() // returns {}
cosnt params = useParams('number') // returns {}
const param = useParam('key', "number") // returns NaN
  1. I want to check param like if(param) but NaN will be true. It might not be useful.
  2. Between useParams and param is not consistent, I'm a bit confusing.
  3. Type implementati

Created by Jordan Walke

Released March 2013

Latest release 18 days ago

Repository
facebook/react
Website
reactjs.org
Wikipedia
Wikipedia

Related Topics

angular react-native vue
You can’t perform that action at this time.