Closed zzswang closed 6 years ago
@zzswang would you like to add all this code into a <code> element and execute it?
hi @fernandopasik
I didn't get it, what's your point?
Above code, which I want to show how to use Modal component. Some times we need a bit of code to handle the state changing, to let others learn the example.
I see. At the moment we don't have support for a complex implementation of a component. We just use it to instantiate components. Event if you use the just render part of your code in a code element, there's no way right now to handle the state of the wrapped react component.
Hello, I am using this component, there is a doubt, I want to display javascript code, thank you ~ Sorry, English is not my native language.
suppose we want to show how to interact with a component
like following code in markdown