Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

[BUG]渲染函数内逻辑与导致三目运算失效 #1099

Closed
dominicleo opened this issue Jun 18, 2020 · 0 comments · Fixed by #1100
Closed

[BUG]渲染函数内逻辑与导致三目运算失效 #1099

dominicleo opened this issue Jun 18, 2020 · 0 comments · Fixed by #1100
Labels
bug Something isn't working

Comments

@dominicleo
Copy link
Contributor

import * as React from 'react';
import { View } from 'remax/one';

export default () => {
  const [mode, setMode] = React.useState(false);
  const onChangeMode = () => {
    setMode(!mode);
  };
  return (
    <View onTap={onChangeMode}>
      {mode ? <View>true</View> : <View>false</View>}
      {!mode && <View>visible</View>}
    </View>
  );
};

版本信息:

  • remax 版本: 2.5.4
  • 小程序端: 微信小程序
@dominicleo dominicleo added the bug Something isn't working label Jun 18, 2020
yesmeck pushed a commit that referenced this issue Jun 18, 2020
yesmeck pushed a commit that referenced this issue Jun 18, 2020
yesmeck pushed a commit that referenced this issue Jun 18, 2020
yesmeck pushed a commit that referenced this issue Jun 18, 2020
yesmeck added a commit that referenced this issue Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant