react-scripted-text
v0.1.1
Published
React component and hook to display script-based text output.
Downloads
1
Readme
react-scripted-text (Alpha)
React component and hook to display script-based text output.
Install
npm install --save react-scripted-text
Usage
import React from 'react'
import ScriptedText from 'react-scripted-text'
const App = () => {
return (
<div>
<ScriptedText script="text_script.txt" />
{/* or */}
<div>
{ useScriptedText({script_file: "text_script.txt"})}
</div>
</div>
)
}
export default App
// see github example/public/script.txt for an example
// this section will be updated soon
Version History
0.1.1 Usability Fixes
- removed console.logs
- changed ScriptedText property to script (formerly script_file)
0.1.0 Alpha Release
- ScriptedText component
- useScriptedText hook
- Available commands: langs, set (lang, delay, speed), *n, wait, clear
License
MIT © ZJVieth