mdx-observable
mdx-observable copied to clipboard
Alternative name
Love the idea ❤️. Out of curiosity and to perhaps help with the rename, what could be a more appropriate name now that this library is not using observables?
What do you suggest? mdx-state?
To be honest I am no pro so I cannot really suggest anything here, I opened the ticket to start the discussion. For my plugin, which would use yours, I’m currently considering ‘mdx-interactive’.
Looking at my first interactive
mdx I can now imagine renaming to mdx-state
. I can also imagine not renaming at all because of the following.
<Observe>
{({ setState }) => (
<button onClick={() => setState(s => ({ count: s.count + 1 }))}>
Click me
</button>
)}
</Observe>
<Observe>
{ ({...state}) => (<div>Counter state = {state.count}</div>) }
</Observe