@reactionaries/hookd

a module to convert React class components to hooks

Usage no npm install needed!

<script type="module">
  import reactionariesHookd from 'https://cdn.skypack.dev/@reactionaries/hookd';
</script>

README

@reactionaries/hookd

Hookd is a module converting JSX class components to functional components

To install:

npm i @reactionaries/hookd

To use:

const hookd = require('@reactionaries/hookd');

// returns a functional component as a string
hookd(someClassComponentAsAString)