text stringlengths 36 4k | label stringclasses 4
values | repo stringclasses 27
values | source stringclasses 2
values |
|---|---|---|---|
[DevTools Bug]: provide an icon to Edge devtools?
### Website or app
Website: https://reactjs.org/
### Repro steps
1. open developer tools in Edge
2. go to settings -> experiment -> enable Focus Mode -> reload DevTools
3. we can see the react extension is loaded as below in devtools:
 contain several [existing media events](https://html.spec.whatwg.org/multipage/m... | feature | facebook/react | nlbse2024 |
Feature Request(devtools): `launch-editor` for selected component
### Why:
User can open the source file in editor/ide by one-click.
It' is a useful feature in `vue-devtools`.
---
### How:
Add a click event on here:
https://github.com/facebook/react/blob/cdfde3ae110844baf068706e7ed3fe97ec15f1d7/packages/react-... | feature | facebook/react | nlbse2024 |
Feature proposal: Hook equivalent to createSlice from Redux Toolkit?
Would this be useful?
> A function that accepts an initial state, an object full of reducer functions, and a "slice name", and automatically generates action creators and action types that correspond to the reducers and state.
From [createSlice](ht... | feature | facebook/react | nlbse2024 |
[DevTools Feature Request] Break on Warnings
It'd be nice to have a toggle to pause the debugger when warnings fire so you can inspect the stack as it's happening.
```
console.error = function() {
...
if (isBreakOn) {
debugger;
}
}
```
See https://github.com/facebook/react/pull/19044 | feature | facebook/react | nlbse2024 |
Allow opting out of invokeGuardedCallbackDev
At the moment, when in development mode, React uses a special workflow for callbacks, to avoid using `try...catch`.
It works well. So well that several testing frameworks also get their uncaught exception handling triggered.
**Example with mocha:**
```js
import React from... | feature | facebook/react | nlbse2024 |
DevTools: Hovering "Rendered by" list should highlight elements
This list is pretty awesome:
<img width="390" alt="Screenshot 2020-04-03 at 00 12 08" src="https://user-images.githubusercontent.com/810438/78308234-e0047780-753f-11ea-9d4f-1e2d31e5baa0.png">
But always struggle to guess which component in the owner lis... | feature | facebook/react | nlbse2024 |
Add colors to component's name ( in Component tree ) for visual feedback about type of Component or Node
**What is the current behavior?**
All the components name in the Component tree are of the same color
**What is the expected behavior?**
It would be helpful if they have different colors indicating the type of C... | feature | facebook/react | nlbse2024 |
react-refresh: add options to override $RefreshReg$ and $RefreshSig$ for better System.js integration
**Do you want to request a *feature* or report a *bug*?**
Feature
Right now babel plugin emits globals: https://github.com/facebook/react/issues/16604
```js
window.$RefreshReg$ = () => {};
window.$RefreshSig$ = () =... | feature | facebook/react | nlbse2024 |
Apply props/state/hooks edits on blur
**Do you want to request a *feature* or report a *bug*?**
feature
**What is the current behavior?**
trigger by press enter button
**What is the expected behavior?**
trigger by out of focus or pressing enter button | feature | facebook/react | nlbse2024 |
React DevTools force re-render button
I'd like to have a button that forces a re-render of the selected component when clicked. For example, adding a button like this on the right of the component controls:

... | feature | facebook/react | nlbse2024 |
Enhance React DevTools "Why did this render?" for values nested in prop objects
**Do you want to request a *feature* or report a *bug*?**
*feature*
**What is the current behavior?**
[as demonstrated here, "Why did this render?"](https://github.com/facebook/react/issues/16437#issuecomment-524892514) does a great job r... | feature | facebook/react | nlbse2024 |
Show property type of value (string,int,etc) on state/props.
**feature**
**What is the current behavior?**
On the new developer tool you are unable to see what property type the value. You used to be able to see if the value was a string or int because of the quotation marks (for example id: "1" (string) or id: 1 (in... | feature | facebook/react | nlbse2024 |
Devtools V4: Where is Highlight Updates?
If I understood correctly, this is the correct repository for devtools v4, right?
I just noticed that react devtool were updated. I'm missing the "Highlight Updates" function.
How can I activate it?

**What is the current behavior?**
Consider the following functional component
```
import React, { useContext } from "React"
const myFunctionComponent = p... | feature | facebook/react | nlbse2024 |
[ESLint] Hardcore rule allowing default hooks using only inside custom ones
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
feature
**What is the current behavior?**
The... | feature | facebook/react | nlbse2024 |
Pass dependencies to `useMemo` callback as arguments
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
Feature
**What is the current behavior?**
The `useMemo` factory fu... | feature | facebook/react | nlbse2024 |
Unhelpful warning for `act` for react-dom@16.8
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
Feature/Improvement
**What is the current behavior?**
If there is test c... | feature | facebook/react | nlbse2024 |
adding if directive
if you added if directive to any element for showing the element or not that would be better than making a js expression in my opinion
**regular way**
```js
const App = (props) => {reactif={true}
let name = props.name;
return (
<div >
{name === 'koko' ? <div className="yousef">{name}</div> : ... | feature | facebook/react | nlbse2024 |
Support Proxy as child
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
Feature
**What is the current behavior?**
Objects are not valid as a React child
**If the current... | feature | facebook/react | nlbse2024 |
Make it easier to debug when Context uses defaultValue accidentally due to no provider
I just spend several hours debugging app blaming everything except me ofc.
I am using this useTheme Hook.
```ts
import React from 'react';
import ThemeContext from '../contexts/ThemeContext';
const useTheme = () => {
const theme ... | feature | facebook/react | nlbse2024 |
eslint-plugin-react-hooks should report errors inside unnamed functions
I want to report a bug for the hooks plugin.
**What is the current behavior?**
There was no error report after running eslint, but the component failed when running in the browser.
From the chrome dev console it reported "Uncaught Error: Rendered... | feature | facebook/react | nlbse2024 |
Feature Idea: useError hook
**Do you want to request a *feature* or report a *bug*?**
Feature idea
**What is the current behavior?**
Currently there is no hook for dealing with errors in a component's sub-tree.
**What is the expected behavior?**
Have a hook that allows for functional components to act as Error B... | feature | facebook/react | nlbse2024 |
react-is memo
Feature request
**What is the current behavior?**
`react-is` now doesn't have method to check if element is `memo`(like `isForwardRef`).
Maybe there are some reasons why it's not implemented? | feature | facebook/react | nlbse2024 |
Support reporting Suspense loading indicator outside of the suspended tree
Cryptic title I can imagine, but I am not aware that something like this would have been mentioned anywhere so far.
I have a page showing some statistics and it's split into two even panels. The left panel is showing some numbers and contains ... | feature | facebook/react | nlbse2024 |
Synthetic KeyboardEvent should support KeyboardEvent.code
**Do you want to request a *feature* or report a *bug*?**
Feature
**What is the current behavior?**
The current synthetic keyboard event does not support the [`KeyboardEvent.code`](https://www.w3.org/TR/uievents/#dom-keyboardevent-code) property.
**What is th... | feature | facebook/react | nlbse2024 |
Provide a way to trigger useEffect from tests
Hello,
I tried testing components that use the cool new hooks API, but `useEffect` doesn't seem to work with the test renderer.
Here's a small failling Jest test:
```js
import React, { useEffect } from "react";
import { create as render } from "react-test-renderer";
it... | feature | facebook/react | nlbse2024 |
16.6 contextType + getDerivedStateFromProps
**Do you want to request a *feature* or report a *bug*?** Feature
**What is the current behavior?**
Context not passed into getDerivedStateFromProps:
```
static getDerivedStateFromProps(props, state, context) {}
```
Just curious with the new `static contextType`, it woul... | feature | facebook/react | nlbse2024 |
Conditional Components
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
Feature
**What is the current behavior?**
Often we will use expressions like this:
`{ !x ? null : <Component title={x.title} /> }`
**What is the desired ... | feature | facebook/react | nlbse2024 |
Is it possible to use Profiler server side?
I'm trying to use the Profiler server side rendering with `renderToString` but the onRender callbacks are not getting called.
Is there a way to do it?
I'm using 16.5.1, NODE_ENV === "development".
My code looks like this, works fine client side:
```javascript
import React,... | feature | facebook/react | nlbse2024 |
Cache Provider: Add hooks to read and preload in dev mode
This topic originally came up in a `react-devtools` discussion: https://github.com/facebook/react-devtools/issues/1099#issuecomment-414138771.
**Do you want to request a *feature* or report a *bug*?**
Feature
**What is the current behavior?**
The package `sim... | feature | facebook/react | nlbse2024 |
Provide a `testInstance.context` property to facilitate context testing
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
Feature Request
**What is the current behavior?**... | feature | facebook/react | nlbse2024 |
Ability to use return value of React.Children.map with React.Children.only
As stated in the docs and shown in #4410, the return value of `React.Children.map` is incompatible with the `React.Children.only` function, and will return with the error message:
> Invariant Violation: Invariant Violation: React.Children.only ... | feature | facebook/react | nlbse2024 |
Identify different instances of react component in performance measures
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
**feature**
Can fiber._debugID also be part of pe... | feature | facebook/react | nlbse2024 |
Add a way to compare relative positions of deep children
Hey,
It seems like there is currently no way to take two mounted component instances and tell which one of them is coming earlier in the application structure (they could have been mounted asynchronously, and tracking the instantiation/render/mount time is not ... | feature | facebook/react | nlbse2024 |
Synthetic (keyboard) events don't implement the .code property
**Do you want to request a *feature* or report a *bug*?**
Feature
**What is the current behavior?**
`<event>.code` is undefined
**What is the expected behavior?**
`.code` is a very useful part of the KeyboardEvent spec: https://www.w3.org/TR/uievents/#do... | feature | facebook/react | nlbse2024 |
Provide HOC for new context API
I find myself needing a higher-order component every once in a while when using render props, so I can get stuff from context in my lifecycle methods. It's pretty easy to create a HOC from a render prop, so I was wondering how open y'all would be to adding a HOC to the new context API?
... | feature | facebook/react | nlbse2024 |
Cursor jumps to end of input when onChange doesn't call setState
[Edit]: **I'm asking for a feature**.
**Current Behaviour**
An input `onChange` function that returns a value equalling the prior value causes the cursor to jump to the end of the input. This is the same as [this comment from #995](https://github.com/fa... | feature | facebook/react | nlbse2024 |
Allow to specify displayName for createContext() providers and consumers
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
bug
**What is the current behavior?**
in React t... | feature | facebook/react | nlbse2024 |
Don't call getDerivedStateFromProps on a PureComponent if props are the same?
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
Feature
**What is the current behavior?**
`... | feature | facebook/react | nlbse2024 |
Support hydration after HTML minification
**Do you want to request a *feature* or report a *bug*?**
Report a bug
**What is the current behavior?**
`React.hydrate` replaces the DOM after a SSR page is served, and two sibling links in the page have the `href` attributes wrongly set.
I did a little repl to replicate th... | feature | facebook/react | nlbse2024 |
Provide a better error on React.cloneElement(null/undefined)
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
**What is the current behavior?**
**If the current behavior... | feature | facebook/react | nlbse2024 |
Issues with ReactControlledValuePropTypes
**Do you want to request a *feature* or report a *bug*?**
See below.
**What is the current behavior?**
1. (Bug / Inconsistency)
```jsx
<input type="radio" checked={false} />
```
No Warning.
2. (Feature Request)
```jsx
<input type="radio" checked={true} onChange={undefined}... | feature | facebook/react | nlbse2024 |
Production reconciler Instrumentation
_Apologies if this is documented somewhere, but I was unable to find anything related after a pretty exhaustive search of docs + code._
Are there any production instrumentation hooks for the reconciler? Specifically, I'm looking for callbacks/events that would allow me to track o... | feature | facebook/react | nlbse2024 |
Does react still require non-toplevel submit handler?
**Do you want to request a *feature* or report a *bug*?**
bug? Maybe.
**What is the current behavior?**
Using non-delegated handler for submit event.
**What is the expected behavior?**
After IE9, at least I know, submit event bubbled up.
**Which versions of R... | feature | facebook/react | nlbse2024 |
Extracting a Context Stack
A useful feature of context is creating a custom stack of things to see what your component is embedded in side.
I think the primary use case is logging explicitly.
Currently that is pretty expensive to maintain just *in case* you need it. See #12234 as an example.
We could provide an API... | feature | facebook/react | nlbse2024 |
Provide a way to perform a synchronous render into another root during the commit phase
**Do you want to request a *feature* or report a *bug*?**
Bug
**What is the current behavior?**
Reentrancy checks prevent synchronous `ReactDOM.render` in a nested React component. This used to work before React 16, and [seems r... | feature | facebook/react | nlbse2024 |
Add oldProps as additional argument to getDerivedStateFromProps ?
<!--
Note: if the issue is about documentation or the website, please file it at:
https://github.com/reactjs/reactjs.org/issues/new
-->
**Do you want to request a *feature* or report a *bug*?**
feature
**What is the current behavior?**
`getDerived... | feature | facebook/react | nlbse2024 |
can React support feature like keep-alive in Vue?
i found this issue: https://github.com/facebook/react/issues/4770, and @sophiebits said that React never reuses an instance after it's been unmounted.
does it means that React will never support feature like keep-alive in Vue? or there is other way to maintain compon... | feature | facebook/react | nlbse2024 |
Have Fragments support dangerouslySetInnerHTML
The addition of the `Fragment` in 16.2.0 is fantastic and helps keep our HTML semantic and clean. Unfortunately there is still no way to inject HTML without a wrapping tag.
```jsx
const HTML = <span>Hello World</span>;
<div key={ ID } dangerouslySetInnerHTML={ { __html:... | feature | facebook/react | nlbse2024 |
Symbols as keys in children as arrays or iterators
**Do you want to request a *feature* or report a *bug*?**
I want to request a feature
**What is the current behavior?**
Using `Symbols` as element keys throws a type error.
**If the current behavior is a bug, please provide the steps to reproduce and if possible a... | feature | facebook/react | nlbse2024 |
Add React.createRef() as the migration path for string refs
Creating this issue to track https://github.com/facebook/react/pull/11555. I intend to close the PR as it's outdated, but we probably want to turn it into a real RFC and potentially get it in during 16.x. | feature | facebook/react | nlbse2024 |
Lifecycle method to build initial state for classes
**Feature request**
We need to have a way to build the initial state of ReactComponent in case of usage of classes.
**What is the current behavior?**
Warning in case this.state modified in willComponentMount.
Access to partially constructed object in case of somewh... | feature | facebook/react | nlbse2024 |
Feature request: Global state at the render/hydrate level
This is a feature request. It relates to https://discuss.reactjs.org/t/suggestion-for-global-context/9035
This has been a pain point for me, and I'm sure we can do better. The issue: How to have some state available to all components without passing everything... | feature | facebook/react | nlbse2024 |
Add hooks to ReactDOMServer to support caching
**Do you want to request a *feature* or report a *bug*?**
feature
**What is the current behavior?**
react-dom SSR performance could be improved using server-side cache, but currently the
ReactPartialRenderer is currently not accessible from the `react-dom` package.
**De... | feature | facebook/react | nlbse2024 |
stopImmediatePropagation is not available for synthetic events
In order to call this method, you'd have to access it via `event.nativeEvent.stopImmediatePropagation()`: https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation
It'd be awesome if this was supported on `event` itself. I did see a ... | feature | facebook/react | nlbse2024 |
Add a way to opt out of User Timing API calls
**Do you want to request a *feature* or report a *bug*?**
bug or v16 feature (dont know)
**What is the current behavior?**
When building in dev environment, performance timeline measures appear by default,
ie. without `?react_perf` query string as in v15 described [h... | feature | facebook/react | nlbse2024 |
Release a tool for statistical perf analysis (a replacement for ReactPerf)
**Do you want to request a *feature* or report a *bug*?**
A feature
**What is the current behavior?**
N/A
**What is the expected behavior?**
It's great that React 16 integrates with the timeline in browsers dev tools and that is very helpful ... | feature | facebook/react | nlbse2024 |
Add `code` property to `SyntheticKeyboardEvent`
**Do you want to request a *feature* or report a *bug*?**
Improvement
**What is the current behavior?**
[`SyntheticKeyboardEvent`](https://github.com/facebook/react/blob/e779c39dfeb41ae8f6611dc4f9830d1b1ac64f9b/packages/react-dom/src/events/SyntheticKeyboardEvent.js) ... | feature | facebook/react | nlbse2024 |
Async componentWillReceiveProps to allow state update
**Do you want to request a *feature* or report a *bug*?**
Feature
**What is the current behavior?**
An (almost) immediate re-render is due after `componentWillReceiveProps` is called, unless `shouldComponentUpdate` says otherwise.
**What is the expected behavior?... | feature | facebook/react | nlbse2024 |
React16 not compatible with x3dom
** This is both bug / feature
https://www.x3dom.org/
I used to be able to use x3dom with React. It was great.
** React ^15 I was able to use the **is** property to generate custom elements and custom attributes that could be picked up by x3dom i.e. <shape is render="true"/>
Now wit... | feature | facebook/react | nlbse2024 |
Loosen up type requirements for event handlers
**Do you want to request a *feature* or report a *bug*?**
Feature
**What is the current behavior?**
When adding event handlers, it is common practice to do something like:
```js
const MyButton = ({ canClick, onClick }) =>
<div onClick={canClick && onClick}></div>
```... | feature | facebook/react | nlbse2024 |
Production Check in react-test-renderer
When upgrading to 16.0.0 from 15.6.1, react-test-renderer started failing on my tests with the message:
> test renderer is not available in production mode.
I have in fact been running unit tests using this renderer during my production build.
I'm trying to understand: why was... | feature | facebook/react | nlbse2024 |
"Did not expect server HTML to contain the text node" due to whitespace in React 16
We have updated our React v15 Application to v16. Everything seems to work fine instead the fact that this error appears:
`Warning: Did not expect server HTML to contain the text node "
" in <div>.`
We are using ReactDOM.hydrate and... | feature | facebook/react | nlbse2024 |
Attach third-party tools to monitor component state updates
**Do you want to request a *feature* or report a *bug*?**
feature, that exists in previous releases of react
**What is the current behavior?**
feature is not implemented
**Which versions of React, and which browser / OS are affected by this issue? Did this ... | feature | facebook/react | nlbse2024 |
`select` should warn if `value` is not available
IMO,
```
<select value="foo" onChange={...}>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
```
should warn because there is no "foo" option. It should probably also warn if `value` is not specified, because there is no "empty" option eithe... | feature | facebook/react | nlbse2024 |
Accept Ref Objects as Refs?
[Reason React](https://github.com/reasonml/reason-react) uses first class OCaml refs to store mutable values (instead of on `this` instances).
These are basically just an object with a mutable `contents` property. These can be updated with callback refs `n => ref.contents = n` but it would... | feature | facebook/react | nlbse2024 |
Async Top-level Hook Before Commit
_(This isn't needed for 16.0.)_
I think we're missing a top-level API. If you want to integrate with non-React code around you in an async way, then you probably have some parents around you. It's not always the case that you want to show those parents before React is done. Maybe yo... | feature | facebook/react | nlbse2024 |
[Feature Suggestion] Publish react also as ES2015 code
**Do you want to request a *feature* or report a *bug*?**
*feature*
**What is the current behavior?**
React is published to NPM only as ES5 code
**What is the expected behavior?**
Publish react also in es2015, with es2015 entry point in the package.json
Motivat... | feature | facebook/react | nlbse2024 |
Nicer Formatting of SSR Validation
The new validation in #10026 only issues a warn for the first difference found in a HTML hydration scenario. Ideally it should instead queue up all the differences and then at the end (commit) issue a single warning with a nicely formatted diff.
1) Instead of warning add [these warn... | feature | facebook/react | nlbse2024 |
Feature request: Support server-side rendering of non-standard DOM attribute names (eg. AMP's [prop]="value")
**Do you want to request a *feature* or report a *bug*?**
Request a feature
I am working on project to build AMP page with React Server Side Rendering. I am having an issue to add custom attribute to built-in... | feature | facebook/react | nlbse2024 |
Feature request: renderTypes
**Do you want to request a *feature* or report a *bug*?**
Request a feature
Per some discussion today with @tomocchino and @thejameskyle, I'd like a non-Flow mechanism to annotate what type(s) of elements a component expects to render.
Here's some examples, with Flow types for comparison... | feature | facebook/react | nlbse2024 |
Add React.Children.find
I think a `React.Children.find` method would be really useful in situations where you need to iterate over your children and find just one that satisfies a particular condition. I'm running into this situation more and more often in my React code. A few examples:
- In [React Router](https://re... | feature | facebook/react | nlbse2024 |
Warn when `static propTypes/static defaultProps` in ES6 class is a function
**Do you want to request a *feature* or report a *bug*?**
Bug
**What is the current behavior?**
```
class TestWrongPropTypes extends Component {
static propTypes() {
return {
children: PropTypes.string,
missing: PropTypes.string.isRequire... | feature | facebook/react | nlbse2024 |
[RFC] Add traversal utility to ReactTestUtils matching toTree shape
### Problem
The `ReactTestRenderer` now supports a new API, [`toTree`](https://github.com/facebook/react/blob/master/src/renderers/testing/ReactTestRendererFiber.js#L350-L355), which returns an easily traversed tree representing the internal state of... | feature | facebook/react | nlbse2024 |
Expose DEV-mode warnings in devtools UI
React has made recent developer experience improvements to lifecycle error handling and logging. Errors thrown during render can be recovered from using ~~`unstable_handleError`~~ `componentDidCatch`. Errors thrown during lifecycle methods are also automatically logged to the co... | feature | facebook/react | nlbse2024 |
RFC: ReactFiberReconciler release artifact
This issue is intended to be a discussion for how to distribute the ReactFiberReconciler.js file and dependencies for custom renderers.
Currently first-class renderers within the React codebase/Facebook ecosystem do not have any concerns for this because of Haste / access to... | feature | facebook/react | nlbse2024 |
Provide a way for external tools to list nodes with event info
I would like to add React event bubbles to the markup tree of Firefox Developer Tools. To do this I need a way to get a list of nodes and their attached event listeners.
If somebody can provide a way for me to do this it will be added within a day.
Is th... | feature | facebook/react | nlbse2024 |
[RFC] Idea: forceDeepUpdate() and forceDeepUpdateWithScope(scope)
_Just going to put it out there for feedback..._
## Motivation
Subscription management comes with a cost and that eats into the wins of async rendering since it needs to be managed synchronously. Not just managing the direct subscriptions themselves bu... | feature | facebook/react | nlbse2024 |
ReactTestRenderer custom depth rendering
**Do you want to request a _feature_ or report a _bug_?**
Feature
**What is the current behavior?**
``` jsx
// MyComponent.js
import React from "react";
import ThirdPartyComponent from 'third-party-component';
function MyInternalComponent() {
return <div>test</div>;
}
expo... | feature | facebook/react | nlbse2024 |
shouldComponentUpdate doesn't work well if component accepts children
React's shouldComponentUpdate based performance improvements work great for improving the performance of medium-weight components with large numbers of instances. They even work well with event handlers, as you can ignore event handler changes and i... | feature | facebook/react | nlbse2024 |
Is there a way to let users know which invalid type was returned?
This is the error message in question:
```
LabelButton(...): A valid React element (or null) must be returned.
You may have returned undefined, an array or some other invalid object.
```
Not very helpful. Is it technically possible to _show_ what wa... | feature | facebook/react | nlbse2024 |
Clean up top-level event listeners after unmounting all roots
**Do you want to request a _feature_ or report a _bug_?**
Bug - maybe intended behaviour.
**What is the current behavior?**
_Background_
I have an app that needs to be embedded by other apps (other customers). The idea being "our" react app has its javasc... | feature | facebook/react | nlbse2024 |
Expose React build mode/flags
@kittens has expressed concern that people will forget to set the NODE_ENV when building their React application, which will result in babel producing bloated builds, due to our new dev-mode transforms. The `__source` and `__self` should never be set in production, and having them set on ... | feature | facebook/react | nlbse2024 |
Improve error messages for invalid states
I think we should create a test suite that throws errors in different lifecycle methods, and make sure we have relatively sensible invariants as early as possible, preferably with component names.
#6990 is an example of this, but we’ll keep regressing until we actually test fo... | feature | facebook/react | nlbse2024 |
Provide an opt-in way to easily manage `this` in event handlers
There's no shortage of places in React where a dev will write something like
```
onClick={() => this.setBooksSubjects()}
```
or alternatively
```
onClick={this.setBooksSubjects.bind(this)}
```
It's not ideal to re-create these functions on each rende... | feature | facebook/react | nlbse2024 |
Warn on inline style update with a bad value
If set an inline style attribute for a component, such as `backgroundColor: 'yellow'`, and then update the state with a bad value to make the inline style like this `backgroundColor: 'non-exist-color'`. This currently takes no effect on the component, and the backgroundColo... | feature | facebook/react | nlbse2024 |
<datalist> support
Not a _ton_ of browser support for this right now, but it appears to be on the horizon for Webkit.
https://bugs.webkit.org/show_bug.cgi?id=98934
http://caniuse.com/#search=datalist
Right now, I'm not getting any DOM events fired from it in Chrome. Wonder if SyntheticEvent could prollyfill.
https... | feature | facebook/react | nlbse2024 |
Have React ignore a specific DOM element
As per my chat [here](https://twitter.com/nickdima/status/723904527083147264) with @gaearon I'm filing an issue to discuss this further.
I would like to avoid a specific element that I rendered on the server from beeing further updated by react once it reaches the client.
One ... | feature | facebook/react | nlbse2024 |
Add comments/attribute indicating which component was rendered
As per the discussion today...
Sometimes you are developing on a platform that doesn't have devtools (safari, etc). The problem is that you are looking at a whole pile of markup, and can't tell which components rendered it. Without devtools, the output ma... | feature | facebook/react | nlbse2024 |
Allow specifying multiple fallback values for inline styles (e.g. for vendor prefixing with SSR)
I've been using the "string" hack to override CSS values in React components.
For example, if you want to have `display` with different values, you do
```
styleObj.display = '-webkit-box;display: -moz-box;display: -ms-fl... | feature | facebook/react | nlbse2024 |
Add support for CSS variables in style attributes
CSS variables is now supported in Chromium, which we use for rendering. They enable us to write cleaner, more flexible code. Sadly, I cannot seem to use them in React without resorting to various tricks. Ideally, I would like to be able to use them like `<div style={{"... | feature | facebook/react | nlbse2024 |
Support DOM nodes as children
It would be nice to be able to do the equivalent of `<div>{document.createElement('div')}</div>`. It seems entirely doable now with our new fancy renderer I think? Obviously it wouldn't be supported for SSR though so you would have to provide your own fallback if necessary. | feature | facebook/react | nlbse2024 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.