react-snippet-component

0.1.4 • Public • Published

Welcome to React Snippet Component :)

Build Status

See in Action

Component Gif

Installation

React Snippet Component is available as an NPM Package

using npm

npm i react-snippet-component

Usage

import React from 'react'
import SnippetComponent from 'react-snippet-component'
import NyanCat from '../images/nyan-cat.jpg'
 
const Snippet = () => (
  <div>
    <div>
      <h1>Hello!</h1>
      <p>Welcome to my snippet</p>
    </div>
    <SnippetComponent
      image={NyanCat}
      alt="NyanCat"
      title="Title"
      span="Span"
      href="https://rebyoliveira.github.io/projects/"
    />
  </div>
)
 
export default Snippet
 

Dependencies

SnippetComponent.propTypes = {
  image: PropTypes.string,
  alt: PropTypes.string,
  title: PropTypes.string,
  span: PropTypes.string,
  href: PropTypes.string
}

License

This project is licensed under the terms of the MIT license.

Package Sidebar

Install

npm i react-snippet-component

Weekly Downloads

4

Version

0.1.4

License

MIT

Unpacked Size

148 kB

Total Files

6

Last publish

Collaborators

  • rebyoliveira