adam-26 / react-cap Goto Github PK
View Code? Open in Web Editor NEWA fork of react-helmet with a modified public API
License: MIT License
A fork of react-helmet with a modified public API
License: MIT License
Allow handleClientStateChange()
to accept a diff (or current and previous state) to be used to determine exactly what needs to be added/removed from the DOM (without needing to use the data-ignore-cap
attribute).
Determine if this should continue to inspect the DOM to determine what to (or can be) remove(d), or rely solely on the input data.
Hi,
Thanks for the library!
Today I found out react-cap
5.3.2 contains npm-shrinkwrap.json
and as result npm downloads all react-cap dev dependencies when we use it.
I suggest to exclude it from npm via .npmignore
https://docs.npmjs.com/files/shrinkwrap.json
It's strongly discouraged for library authors to publish this file, since that would prevent end users from having control over transitive dependency updates.
As this fork only includes the react-helmet utilities, it would be better if all tests were written directly against the utility methods and not against the <Helmet >
component.
If this is done, then all *AsString()
utility methods can be removed as they are currently only required for testing. (Along with /test/Helmet.js
, which facilitates tests using the original tests). This will also allow a few dev dependencies to be removed.
Write tests for ./src/CapUtils.js
file
Investigate:
When upgrading the react
and react-dom
dependencies to version 16.x, there are 2 tests that fail. Both to do with applying the attribute itemProp
to a <title>
tag.
It appears that R.16 no longer converts the itemProp
attribute to lower-case.
To repeat this, simply update react dependency versions in package.json
then run npm test
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.