How to use the @mapbox/batfish/data/posts.map function in @mapbox/batfish

To help you get started, we’ve selected a few @mapbox/batfish examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mapbox / batfish / examples / initial-experiments / src / pages / index.js View on Github external
render() {
    return (
      
        {JSON.stringify(this.props.location)}
        <div>
          {this.props.frontMatter.title}
        </div>
        <div>
          {this.props.frontMatter.description}
        </div>
        <div>
          <div>Posts</div>
          {posts.map(post =&gt; {
            return (
              <div>
                <a href="{post.path}">
                  {post.frontMatter.title}
                </a>
              </div>
            );
          })}
        </div>
        <div style="{{">
          Horse names: {horseNames.join(', ')}
        </div>
      
    );
  }
}