https://github.com/alex-ray/react-phone-input-2-ssr-example
https://github.com/alex-ray/react-phone-input-2-ssr-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alex-ray/react-phone-input-2-ssr-example
- Owner: Alex-ray
- Created: 2018-05-27T16:37:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-02T03:27:42.000Z (about 8 years ago)
- Last Synced: 2025-02-26T05:44:03.859Z (over 1 year ago)
- Language: JavaScript
- Size: 4.59 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## React Phone Input 2 Server Side Rendering
This repository highlights how the `react-iphone-input-2` react component breaks
when rendered on the server.
To run simply install the dependencies `npm i` and run `npm run start`
Good practive is to bulid React comopnent with universal application in mind.
To do this, we simply need to account for global variables that may not be defined in
different javascript environments. i.e Node.js in this case.
From the error logs you can ses that the `self` is defined. A global variable that
is not defined in Node.js.
