daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import * as React from "react";
  2. import { PropertyControls } from "framer";
  3.  
  4. // ================================
  5. // Step 1: import the Img1 from ./canvas
  6. // You can import any design component in your canvas, just make sure you reference it with the right name.
  7. // I named my component Img1 from the Framer X UI.
  8. // ================================
  9. import { Img1 } from "./canvas";
  10.  
  11. // Define type of property
  12. interface Props {}
  13.  
  14. export class ImageComponent extends React.Component<Props, {}> {
  15.   static defaultProps = {};
  16.  
  17.   static propertyControls: PropertyControls = {};
  18.  
  19.   render() {
  20.     // ================================
  21.     // Use the imported component. Make sure you use it as a JSX element, in particular DON'T do
  22.     // `return Img1` or `return new Img1` as they will simply not work.
  23.     // ================================
  24.     return <Img1 />;
  25.   }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top