Answers for "sanity api call html"

0

sanity api call html

// example with props

const Contact = ({ sanityName }) => {
  return (
      {sanityName.length > 0
        ? sanityName.map((sanityItem, id) => (
            <div key={id}>
              		<h2>{sanityItem.sanityTitle}</h2>
              		<p>{sanityItem.sanityText}</p>
					<img>{sanityItem.sanityImage}</img>
              </div>

export default Contact
Posted by: Guest on March-03-2021

Browse Popular Code Answers by Language