...
/Bringing Everything Together: Buttons
Bringing Everything Together: Buttons
The creation of our app's buttons will be handled in this lesson using ButtonGroup.js. It will also discuss several aspects of our button template.
We'll cover the following...
In the previous lesson, we looked at the implementation for App.js
Press + to interact
import React, { Component } from "react";import HelloWorld from "./HelloWorld";import ButtonGroup from "./ButtonGroup";import { store } from "./store";class App extends Component {render() {return [<HelloWorld key={1} tech={store.getState().tech} />,<ButtonGroup key={2} technologies={["React", "Elm", "React-redux"]} />];}}export default App;
We shall now discuss the ButtonGroup component.
The ButtonGroup component takes in an array of technologies and spits out buttons. It handles the rendering of the three buttons below ...