Answers for "how to add bulma to react"

1

how to add bulma to react

npx create-react-app your-app

npm install bulma 
or 
yarn install bulma

in your App.js file in root directory, import the bulma min.css
		import "bulma/css/bulma.min.css";

test it in the function in App.js
by replacing the divs with this and you should see colour buttons
	<div classname="main">
      <div className="buttons">
        <button class="button is-primary">Primary</button>
        <button class="button is-link">Link</button>
        <button class="button is-info">Info</button>
        <button class="button is-success">Success</button>
        <button class="button is-warning">Warning</button>
        <button class="button is-danger">Danger</button>
        <button class="button is-black">Black</button>
        <button class="button is-white">White</button>
        <button class="button is-dark">Dark</button>
        <button class="button is-light">Light</button>
      </div>
    </div>
Posted by: Guest on August-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language