New answers tagged

1

Some preliminary observations to get you started : 1. Use String.prototype.trim() to remove whitespaces The app is accepting transaction names consisting of spaces only. See attached image. 2. Don't use componentWillMount() componentWillMount is a legacy lifecycle method. It ie being deprecated and will not be available React 17.0 onwards. Hence, it is ...


2

Each tab seems to have three pieces of data/logic associated with it: The tab label The tab content When to render it A good way to simplify your component would be to actually group these bits of related logic together. This can be done by using an array of objects, as an example. Some other suggestions to help improve your overall component: Prefer ...


Top 50 recent answers are included