Skip to content

spotykatch/react-yandex-maps-constructor

Repository files navigation

react-yandex-maps-constructor

React component for Yandex Maps Constructor

NPM JavaScript Style Guide

Install

npm install --save react-yandex-maps-constructor

Usage

Copy full script code of your Yandex Map Constructor and paste it to script attribute.

import React, { Component } from 'react'

import YandexMapConstructor from 'react-yandex-maps-constructor'

class Example extends Component {
  render () {
    return (
      <YandexMapConstructor script='<script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A82bea7622863f2ed81e94d89127e73a7821886976f226e3e00b727819a2835ea&amp;width=500&amp;height=300&amp;lang=ru_RU&amp;scroll=true"></script>' />
    )
  }
}

License

MIT © spotykatch

About

React component for Yandex Maps Constructor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published