React Starry Sky
Introduction
a lovely and easy-to-use React background component develop for my girlfriend!
Usage
npm i react-starry-sky -S
.wrapper {
position: relative;
height: 100vh;
}
import React from 'react';
import ReactDOM from 'react-dom';
import Starry from 'react-starry-sky';
import './styles/index.css';
const Demo = () => (
<Starry className="wrapper">
SSH 💕 WYQ
</Starry>
);
ReactDOM.render(<Demo />, window.document.getElementById('app'));
Preview
https://sl1673495.github.io/react-starry-sky/
Development
npm i
npm run dev
Navigate to http://localhost:8888
Build
npm run build:lib
npm run build:demo
Compiled assets files will be in build
folder