react-template
react-template copied to clipboard
The quickest way to start playing around with Primer React
Primer React Template ๐ฑโ๏ธ
The quickest way to test out or prototype something in Primer React without having to set up a new project.

Get Started (Codespaces)
- Click
Code
- Click
new codespace
- Pick any machine type and click
create codespace
- Wait until the container is built and
Running postCreateCommand...
is finished running in the bottomTERMINAL
panel. - Now in the
TERMINAL
panel write theyarn start
command and hit enter. - When it's finished building your project click
Open
to open a preview of it. If this doesn't happen clickPORTS
in the bottom window and open theLocal Address
from there. - Now you are in Mona's playground ๐ and you can start editing the
src/Playground.js
file to play around with Primer React.
https://user-images.githubusercontent.com/980622/135662854-946e5d2d-b6d1-4cbf-a769-318bf52858a8.mov
Get Started (Locally)
- Clone the project
- Run
yarn
- Run
yarn start
- Open http://localhost:3000 to view it in the browser.
- Go to
src/Playground.js
to start prototyping.
(For GitHub staff only) Check out this talk (9 minutes 30 seconds) from @heyamie for more tips on prototyping with Primer React.
10 reasons why this is great
- ๐ง๐ปโ๐ป Get used to using Codespaces
- ๐ฅบ You're a new Hubber, you have enough to learn already
- ๐ Color mode test your layout quickly
- ๐งโโ๏ธ Prototype layouts outside the main platform
- ๐ No clutter on your local computer
- ๐ฅด No local problems
- ๐ช No linter or formatter issues
- โถ๏ธ Send over a preview link while working live on your code, no waiting for deploy previews needed.
- ๐ No need to set up a new react project, just instantly start prototyping
- ๐งช You want to learn React