InlineCode
Basic
When I wrote
sayHello("John")
it didn't work.<div>
When I wrote <InlineCode>sayHello("John")</InlineCode> it didn't work.
</div>
Props
Prop | Required | Default | Type and notes |
---|---|---|---|
children | ✔ | - |
|
...rest | - | - |
See the docs for rest parameters. For InlineCode , you could pass anything you normally would pass to <code> because the return value looks something like this:
|