sanity api call html

Solutions on MaxInterview for sanity api call html by the best coders in the world

showing results for - "sanity api call html"
Isaure
11 Jun 2018
1// example with props
2
3const Contact = ({ sanityName }) => {
4  return (
5      {sanityName.length > 0
6        ? sanityName.map((sanityItem, id) => (
7            <div key={id}>
8              		<h2>{sanityItem.sanityTitle}</h2>
9              		<p>{sanityItem.sanityText}</p>
10					<img>{sanityItem.sanityImage}</img>
11              </div>
12
13export default Contact