I have a snippet set like so:
import React from 'react'
const ${1:$$(file-name-base)} = ( ${2:$$(yas-choose-value '("\{ \}" "props"))} ) => {
return (
$0
)
}
export default $1
If I choose {}
, the cursor moves to the right of it. After completing itchoosing {}
, how do I place itthe cursor between the brackets, i.e {_}
brackets?
An example of a completed snippet:
import React from 'react'
const Notification = ({ message }) => {
return (
<div className='error'>
{message}
</div>
)
}
export default Notification