Book Image

Creating Interfaces with Bulma

By : Jeremy Thomas, Oleksii Potiekhin, Mikko Lauhakari, Aslam Shah, Dave Berning
Book Image

Creating Interfaces with Bulma

By: Jeremy Thomas, Oleksii Potiekhin, Mikko Lauhakari, Aslam Shah, Dave Berning

Overview of this book

Bulma is a lightweight configurable CSS framework that handles all the hard work of Flexbox for you. Bulma makes creating web interfaces an easy and interesting job. This book begins with an overview of the basics of Bulma ? its terms and its concepts. Then, while designing a login page for your application, you’ll learn how to use the various tools provided by Bulma to create HTML forms and control their layout and flow. In the later chapters, you’ll design an admin area for your application, thus learning to use Bulma’s navigation and menu components. You will also add the components to your user interface for common things such as boxes, lists, and media groups, and then create pagination. As you progress through the book, you’ll create and layout some other components for your interface, including tables, design dropdown lists, and finally to integrate your web application with JavaScript. By the end of this book, you’ll be able to use the features of Bulma to your advantage and build web interfaces quickly and easily.
Table of Contents (15 chapters)
8
8. Creating more tables and selecting dropdowns

Routing with React Router 4

This example application is using React Router 4, which allows you to visit different rendered components based on the URL. This chapter will briefly go over the basics of React Router 4. However, it’s strongly recommended to check out their documentation.

React Router 4 Documentation: https://reacttraining.com/react-router/.

First, you’ll want to install React Router 4 with the following command:

npm install react-router-dom --save

Next, import two specific components of react-router-dom and those are BrowserRouter and Route. You can do that with an ES6 import statement in your App.js file.

import { BrowserRouter, Route } from 'react-router-dom';

Next, import your components that you will create. You can actually import these later once you create them. If you import them before, you’ll get an error. Just be sure to reference this section later when you’re ready to tie routes to components.

BrowserRouter

<BrowserRouter...