Skip to content
This repository was archived by the owner on Jun 29, 2018. It is now read-only.
This repository was archived by the owner on Jun 29, 2018. It is now read-only.

Can I use this? Not sure how to handle Imports. #85

@chobo2

Description

@chobo2

Hi

I am using Reactjs and want to use a datepicker: https://github.com/Hacker0x01/react-datepicker

I have no clue how to make it work as the example uses

import React from 'react';
import DatePicker from 'react-datepicker';
import moment from 'moment';

I downloaded the scripts for each one

    <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react.min.js"> </script>

    <script type="text/javascript" src=" https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.js"></script>
 
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react-datepicker/0.46.0/react-datepicker.js"></script>

React works just fine but when I try to use the Datepicker based on there example I get " Uncaught ReferenceError: DatePicker is not defined"

I think it is something to do with the imports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions