Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include DayPickerInput in dist files #383

Closed
2 tasks done
gpbl opened this issue Jun 10, 2017 · 0 comments
Closed
2 tasks done

Include DayPickerInput in dist files #383

gpbl opened this issue Jun 10, 2017 · 0 comments
Assignees
Milestone

Comments

@gpbl
Copy link
Owner

gpbl commented Jun 10, 2017

Currently we are exporting two different files for the two components. Instead we can export just one file having DayPicker.Input in the global vars.

Example:

<html>
<head>
  <meta charset="utf-8" />
  <script src="https://unpkg.com/react/dist/react.js"></script>
  <script src="https://unpkg.com/react-dom/dist/react-dom.js"></script>
  <script src="https://unpkg.com/babel-standalone/babel.min.js"></script>
  <script src="https://unpkg.com/moment/min/moment.min.js"></script>
  <script src="https://unpkg.com/react-day-picker/daypicker.min.js"></script>
  <link rel="stylesheet" href="./lib/style.css">
</head>

<body>
  <div id="root"></div>
  <script type="text/babel">
    ReactDOM.render(
        <DayPicker.Input />, 
        document.getElementById('root') 
    );
  </script>
</body>

</html>
  • update entry file to include DayPickerInput component
  • update docs
@gpbl gpbl added this to the v5.6.0 milestone Jun 10, 2017
@gpbl gpbl self-assigned this Jun 10, 2017
@gpbl gpbl closed this as completed in #384 Jun 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant