mdx-observable icon indicating copy to clipboard operation
mdx-observable copied to clipboard

Alternative name

Open bravo-kernel opened this issue 5 years ago • 3 comments

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?

bravo-kernel avatar Nov 23 '19 13:11 bravo-kernel

What do you suggest? mdx-state?

alexkrolick avatar Nov 23 '19 20:11 alexkrolick

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’.

bravo-kernel avatar Nov 23 '19 20:11 bravo-kernel

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

bravo-kernel avatar Nov 24 '19 14:11 bravo-kernel