Created
March 6, 2017 23:57
-
-
Save coliveravenegas/24d47a89f710cdace7c1390dd0fb21b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { | |
PropTypes, | |
} from 'react'; | |
import {csrftoken} from './djangotoken'; //Here we import the previous created file | |
const DjangoCSRFToken = () => { | |
return ( | |
<input type="hidden" name="csrfmiddlewaretoken" value={csrftoken} /> | |
); | |
}; | |
export default DjangoCSRFToken; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment