We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f270b commit 345fe29Copy full SHA for 345fe29
src/components/FormattedMessage/index.js
@@ -2,7 +2,7 @@ import { createElement, isValidElement } from 'react';
2
import PropTypes from 'prop-types';
3
import format from 'format-message';
4
5
-export default function FormattedMessage({ message, values, tagName = 'span' }) {
+export default function FormattedMessage({ message, values, tagName }) {
6
const uid = Math.floor(Math.random() * 0x10000000000).toString(16);
7
const hashedParams = {};
8
const elements = {};
@@ -31,5 +31,5 @@ FormattedMessage.propTypes = {
31
};
32
FormattedMessage.defaultProps = {
33
values: undefined,
34
- tagName: '',
+ tagName: 'span',
35
0 commit comments