react-thing
v1.1.0
Published
A simple React thing for when you want something in React
Downloads
4
Maintainers
Readme
React Thing
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)