Truffle, Webpack and React boilerplate.
Last updated Jul 8, 2026
727
Stars
243
Forks
3
Issues
0
Stars/day
Attention Score
80
Language breakdown
JavaScript 82.9%
CSS 11.0%
Solidity 4.1%
HTML 1.9%
▸ Files
click to expand
README
React Truffle Box
This box comes with everything you need to start using Truffle to write, compile, test, and deploy smart contracts, and interact with them from a React app.
Installation
First ensure you are in an empty directory.
Run the unbox command using 1 of 2 ways.
# Install Truffle globally and run truffle unbox
$ npm install -g truffle
$ truffle unbox react
# Alternatively, run truffle unbox via npx
$ npx truffle unbox react
Start the react dev server.
$ cd client
$ npm start
From there, follow the instructions on the hosted React app. It will walk you through using Truffle and Ganache to deploy the SimpleStorage contract, making calls to it, and sending transactions to change the contract's state.
FAQ
- How do I use this with Ganache (or any other network)?
truffle migrate pointed to another network, restart the React dev server, and see the change take place.
- Where can I find more resources?
🔗 More in this category