LoginSignup
0
4

More than 1 year has passed since last update.

ReactでのBulma導入方法

Posted at

npmからBulmaをインストール

$ npm install bulma

Reactでの書き方

className=に続けて、BulmaのCSSのクラス名を指定する。

hello.jsx
import React from 'react';
import 'bulma/css/bulma.css';

const HelloPage = () => {
    return (
        <section className="section">
            <main className="container">                         
                <div className="columns">
                    <div className="column">
                        <div className="content">
                            <h1 className="title is-1">Hello, World!!!</h1>                                                
                            <h2>はじめてのBulma</h2>                          
                        </div>
                    </div>                 
                </div>
            </main>
        </section>
    )
}

export default HelloPage

参考サイト

0
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
4