react-thing

1.1.0 • Public • Published

React Thing

Build Status

This is a dummy component designed to be a hello world example.

I needed a dirt simple React component distributed on NPM to experiment with preact-compat.

Usage

npm install react-thing
const React = require('react')
const ReactDOM = require('react-dom')
const Thing = require('react-thing')

ReactDOM.render(<Thing />, document.body)

Preact

You can also use this in Preact projects without preact-compat like:

const { h, render } = require('preact')
const Thing = require('react-thing/preact')

render(<Thing />, document.body)

Package Sidebar

Install

npm i react-thing

Weekly Downloads

13

Version

1.1.0

License

ISC

Last publish

Collaborators

  • crccheck