Я не знаю, как избежать фигурных скобок в следующем коде:
<FormattedMessage
id='some.id'
defaultMessage={'```\nimport "sth";\nrun()\n{\nmake();\n}\n```'}
/>
В консоли браузера я вижу эту ошибку:
[React Intl] Error formatting the default message for: "some.id"
Error: The intl string context variable 'make();' was not provided to the string '```
import "sth";
run()
{
make();
}
```'
Я не хочуmake();
быть контекстной переменной.Это должна быть только часть строки.