Reactjs 属性值是否可以包含内联样式?

Reactjs 属性值是否可以包含内联样式?,reactjs,properties,inline-styles,Reactjs,Properties,Inline Styles,尝试创建包含道具标题和文本的BlogPost组件。我无法对帖子文本实施文本样式设置。文本如何包含“”斜体 属性值字符串中的、强、锚定链接或其他html文本样式? 或者有没有其他方法来创建这个组件结构,以便在创建博客文章时易于管理 例如: App.js <article> <BlogPost title = "Definition - Software developer"

尝试创建包含道具标题和文本的BlogPost组件。我无法对帖子文本实施文本样式设置。文本如何包含“”斜体 属性值字符串中的、强、锚定链接或其他html文本样式? 或者有没有其他方法来创建这个组件结构,以便在创建博客文章时易于管理

例如:

    App.js

    <article>
              <BlogPost
                title = "Definition - Software developer"
                text = "According to Wikipedia: A software developer is a person concerned with facets of the software development process, including the research, design, programming, and testing of computer software. Other job titles which are often used with similar meanings are programmer, software analyst, and software engineer. ..The single individual is also called by the name God and speaks the language of C."
              />
</article>

    BlogPost.js

    return (
    <div>
      <h2 id="postHeader"> {title} </h2>
      <p className="PostText"> {text} </p>
    </div>
  )
App.js
BlogPost.js
返回(
{title}

{text}

)
使用这个软件包

太好了,它很有魅力。现在BlogPost.js从ReactMarcdown组件获取。App.js有一个包含html标记的常量:const blogpost1和组件