Back to React Sketchapp

Profile Cards w/ React Primitives

examples/profile-cards-primitives/README.md

3.2.2962 B
Original Source

Profile Cards w/ React Primitives

How to use

Download the example or clone the repo:

bash
curl https://codeload.github.com/airbnb/react-sketchapp/tar.gz/master | tar -xz --strip=2 react-sketchapp-master/examples/profile-cards-primitives
cd profile-cards-primitives

Install the dependencies

bash
npm install

Then, open Sketch and navigate to Plugins → react-sketchapp: Profile Cards w/ Primitives

Run it in Sketch

Run with live reloading in Sketch

bash
npm run render

Run it in your browser

bash
npm run web

Open a browser to http://localhost:3000

The idea behind the example

react-primitives provides a powerful way to build platform-independent components. This is a simple example of rendering to web & Sketch simultaneously.