@readr-media/react-dropping-text
v1.0.9
Published
Downloads
38
Readme
@readr-media/react-dropping-text ·
Demo
Usage Example
import DroppingText from '@readr-media/react-dropping-text'
import React from 'react'
import { createRoot } from 'react-dom/client'
const reactRootId = 'root'
const container = document.getElementById(reactRootId)
const root = createRoot(container)
const mockTextArr = [
'This is',
'<span style="3em">Dropping Text</span>',
'example',
]
root.render(
<DroppingText
showLoadingImg
textArr={mockTextArr}
/>
)
Create Embed Code
See @readr-media/react-embed-code-generator for more information.
Installation
yarn install
Development
$ yarn dev
// or
$ npm run dev
// or
$ make dev
Build (React, ES6 above Transpiling)
$ npm run build
// or
$ make build
NPM Publish
After executing Build
scripts, we will have /lib
folders,
and then we can execute publish command,
npm publish
Note: before publish npm package, we need to bump the package version first.