狒狒神

Results 40 issues of 狒狒神

In android 5.x or before this version, there isn't `Object.assign` method, but rax used it as `assign` method. https://github.com/alibaba/rax/blob/master/packages/rax/src/assign.js

Bug

- [x] fix: Encountered two children with the same key "" #2240 - [x] fix: isValidElement should return boolean type https://github.com/alibaba/rax/pull/2265 - [x] refacor: rax-test-renderer #2268 - [x] chore: avoid...

Such as https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.htm

Feature

```jsx import { createElement, useState } from 'rax'; function Child() { console.log('Child render'); return Child; } function Parent() { const [arr, setArr] = useState([1]); return ( { setArr([1, 2]); }}>Click...

Bug

## Problem - After child component updated with error, parent component's `componentDidCatch` should be emitted, React example: https://codesandbox.io/s/hardcore-liskov-s2etm?file=/src/App.js - Missing error stacks

Bug

以 `background` 和 `background-color` 同时存在时为例,react 会提示: ![image](https://user-images.githubusercontent.com/14757289/77907010-812ecc00-72bb-11ea-885a-93243c43629a.png)

Feature

enhancement

- visibilityState - window.onerror

enhancement

### Code ```javascript const { transform } = require('@babel/core'); console.log( transform( `let isWeb = true; { if (isWeb) { console.log('xyz'); } else { console.log('abcd'); } } `, { plugins: ['babel-plugin-minify-dead-code-elimination'],...