Created
November 15, 2019 20:30
-
-
Save steve8708/b751cd428f046ebf3940706db19cec53 to your computer and use it in GitHub Desktop.
Example Cloudinary Image rendering component in Builder.io
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { withBuilder } from '@builder.io/react'; | |
class CloudinaryImageComponent extends React.Component { | |
render() { | |
return <img src={this.props.image} /> | |
} | |
} | |
export const CloudinaryImage = withBuilder(CloudinaryImageComponent, { | |
inputs: [ | |
{ name: 'image', type: 'cloudinaryImage' } | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment