${} '

问题描述 投票:0回答:1

I am trying to learn React and I want to understand the ins and outs of everything in this sample project.

const Meta = ({ site, title }) => {
  const siteTitle = get(site, 'title')
  title = title ? `${title} | ${siteTitle}` : siteTitle

Im assuming its comparing the main site title to individual post titles but I cant find anything online about what " /developer.mozilla.orgen-USdocsWebJavaScriptReferenceTemplate_literals。

The Pipe /www.w3schools.comjsjs_operators.asp

javascript reactjs operators bitwise-operators
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.