React Fake Code Typing documentation
$ npm i react-fake-code-typing
---
import { FakeCodeTyping } from 'react-fake-code-typing';
import 'react-fake-code-typing/style.min.css';
const testCode = `
function setError($errorcode) {
$this->errorcode = $errorcode;
$this->error = $this->errors[$errorcode];
}
}
function getError($errormessage = '') {
$error = $this->errorcode.$this->errormessage;
return $error;
exit;
}
/**
* @link Home
* @todo ..write a 404 page that actually makes sense.
*/
$err->setError(404);
$err->getError("Page Not Found");`;
...
<FakeCodeTyping>
<pre>
{testCode}
</pre>
</FakeCodeTyping>
Typing speed (default: 12).
$ yarn start
$ yarn test
$ yarn test:watch
$ yarn test:lint
$ yarn publish
react-fake-code-typing is available under MIT. See LICENSE for more details.