We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I need to load a html file and then insert it with dangerouslySetInnerHTML.
dangerouslySetInnerHTML
How can I do it, I tried fs.readFileSync('./form.html'); but the console logs:
fs.readFileSync('./form.html');
This dependency was not found: * fs in ./src/components/Contact/index.js To install it, you can run: npm install --save fs
I guess this is because this uses webpack and not just node, but I'm missing some basic concepts here it seems.
Thanks in advance
The text was updated successfully, but these errors were encountered:
You import it using the raw loader e.g. import htmlFile from 'raw-loader!./form.html'
import htmlFile from 'raw-loader!./form.html'
Sorry, something went wrong.
No branches or pull requests
Hi, I need to load a html file and then insert it with
dangerouslySetInnerHTML
.How can I do it, I tried
fs.readFileSync('./form.html');
but the console logs:I guess this is because this uses webpack and not just node, but I'm missing some basic concepts here it seems.
Thanks in advance
The text was updated successfully, but these errors were encountered: