className="button  to another component file ?
                  
                  
                
Sort of. Then, you can extract buttons' symbols and optional class names to separate file. Then, something like this: {buttons.map(mapButton(this.handleButton))}
Обсуждают сегодня